nemo_gym.agents.context_management
nemo_gym.agents.context_management
Opt-in context management shared by sequential Responses agents.
Submodules
nemo_gym.agents.context_management.clientnemo_gym.agents.context_management.confignemo_gym.agents.context_management.controllernemo_gym.agents.context_management.historynemo_gym.agents.context_management.materializationnemo_gym.agents.context_management.policies
Package Contents
Classes
API
Bases: RuntimeError
The next action cannot satisfy the configured guards, even after compaction.
Bases: BaseModel
Capability-gated semantic context-history configuration for a Gym agent.
enabled
guards
max_model_calls
max_response_retries
model_config
policy
schedule
One logical rollout. A transport ambiguity is terminal; it is never retried here.
Agents may pass their complete append-only history to create(body) or call
append_observation(items) followed by create(). Both use the same history.
select_response permits bounded, deliberate resampling of definite responses.
_last_accepted_response_id
_model_calls
_request
_seed_event_count
_selected_ids
_step
config
controller
cookies
history
output_items
Materialize the final conversation once, not a full prefix per action.
async
async
async
Validate the final accepted response and close the policy lifecycle.