nemo_gym.rollout_observability
nemo_gym.rollout_observability
Shared contracts for rollout observations and trajectories.
Module Contents
Classes
Functions
Data
API
An Agent response and the observations available at its execution boundary.
Bases: ObservationModel
One root Agent or subagent conversation observed by a harness.
Harness adapters should report an iteration-limit event through an
on_iteration_limit_reached(*, invocation_id: str) -> None observer hook.
The hook records stop_reason="max_iterations" once on that invocation,
leaving parent invocations, budgets, and summary generation alone. Harnesses
with native stop events can call it directly; compatibility shims may call it
at the point where the harness detects its limit.
Bases: ObservationModel
Normalized observations returned by one Agent Server for one rollout.
Require unique invocation IDs and reject cycles in the observed parent graph.
Bases: ObservationModel
An explicit context-compaction event reported by the Agent harness.
Bases: ObservationModel
Stable identifiers an Agent integration can observe for one model call.
Bases: ObservationModel
A fact that the selected integration could not observe or join exactly.
Bases: BaseModel
Bases: ObservationModel
Outcome and lifetime resource usage reported by a sandbox-owning harness.
Bases: ObservationModel
Timing observed for one tool call at an Agent-owned boundary.
Bases: ObservationModel
Bases: ObservationModel
Bases: ToolCallObservation
Tool observation enriched with the model-visible output in a trajectory record.
Bases: ObservationModel
Join persisted messages to HTTP attempts using session, message and model-server IDs.
Run after invocation ownership resolution. Summary attempts belong to compactions; calls without a saved message (for example title generation) stay invocation-owned. Producers declare source_message_id(s), source_model_ref and invocation IDs. Source labels are not dispatch keys. No content or timing fallback is used.
Resolve harness call references against captured model calls without guessing ownership.