nemo_gym.sandbox.providers.base
nemo_gym.sandbox.providers.base
Provider-facing sandbox protocol.
Module Contents
Classes
Data
API
Bases: RuntimeError
Raised when a provider cannot create a sandbox.
Bases: SandboxCreateError
Raised when a newly-created sandbox fails provider readiness checks.
Provider-neutral process execution result.
return_code is the process exit code when the sandbox actually ran the
command. Providers may use a non-process sentinel with error_type set
when the sandbox runtime reports an execution failure without a process
exit code.
Provider-neutral handle to a created sandbox.
raw is provider-owned opaque state. Public code should pass it back to
the provider through this handle rather than inspecting or mutating it
directly.
Runtime/infra provider contract used by the public sandbox API.
Close provider-scoped resources such as SDK clients.
End the sandbox lifecycle and close provider resources for it.
Create a ready sandbox and return a provider-neutral handle.
Providers must return only after the sandbox is healthy enough to run
commands and transfer files. If the sandbox cannot become ready before
the configured timeout, providers should raise SandboxCreateError
or a provider-specific subclass.
Download one sandbox file to the local filesystem.
Run a command inside a sandbox.
Return the current sandbox lifecycle status.
Upload one local file into a sandbox.
Provider-neutral resource request.
Sandbox creation request.
Bases: enum.Enum
Provider-neutral sandbox lifecycle status.