nemo_gym.episode_types
nemo_gym.episode_types
Wire contracts for environment servers.
Module Contents
Classes
Functions
Data
API
Bases: BaseModel, Generic[TaskInputT]
Carry environment-neutral identity and typed task input.
Bases: BaseModel, Generic[EpisodeResultT]
Return either a typed result or a handled failure.
Bases: BaseModel
Describe a failure using the same fields on the wire and in saved records.
The explanation is failure_reason. Kind and stage are optional. The kind
identifies what happened; it does not determine terminality. A collector
observing a lost reply may not know the episode’s stage.
Bases: BaseModel
Identify one physical attempt of a logical rollout.
Return the attempt-qualified key used by capture routes.
Invert capture_key; the reserved attempt suffix makes the mapping one-to-one.
Keep the derived capture key injective without changing existing keys.
Bases: BaseModel, Generic[TaskInputT]
Carry durable task identity and protocol-shaped task input.
Bases: BaseModel
Identify one task within a run-qualified taskset.
Return whether a row has a materialized-task envelope.
This identifies the routing shape, not whether the envelope is valid. A malformed
task_input must still route as a materialized task and fail task validation instead
of falling through to the legacy run-request path.