Skip to navigation

nemo_gym.agents.utils.sandbox_observation

View as Markdown

Sandbox observations built only from lifecycle facts an AsyncSandbox actually saw.

Module Contents

Functions

NameDescription
lifecycle_observationThe owner’s observation of one created sandbox, or None when there is no AsyncSandbox to observe.

API

nemo_gym.agents.utils.lifecycle_observation(
role: typing.Literal['agent', 'verifier', 'environment']
) -> dict[str, typing.Any] | None

The owner’s observation of one created sandbox, or None when there is no AsyncSandbox to observe.

outcome is sandbox_error only when every provider close failed; otherwise it stays unknown: a confirmed teardown says nothing about the command or the grade. Cleanup failures stay listed after a retry, with the first as error_type. Resource usage and remote lifetime are never estimated.