Skip to navigation

nemo_gym.agent_outcome

View as Markdown

Agent-reported causes, independent of environment grading and retry policy.

Module Contents

Classes

NameDescription
AgentOutcomeAdditional evidence distinguishing causes of a failed agent response.

Data

AGENT_OUTCOME_METADATA_KEY

API

class nemo_gym.agent_outcome.AgentOutcome()

Bases: BaseModel

Additional evidence distinguishing causes of a failed agent response.

Ordinary completion and limits already use response.status. HTTP status here belongs to the upstream model request, not the agent endpoint’s HTTP 200.

failure_kind
str
model_config
= ConfigDict(extra='forbid', frozen=True)
status_code
int | None = Field(default=None, ge=400, le=599, strict=True)
nemo_gym.agent_outcome.AgentOutcome.require_registered_kind(
value: str
) -> str
classmethod

Accept the shared vocabulary plus an explicitly undetermined cause.

nemo_gym.agent_outcome.AGENT_OUTCOME_METADATA_KEY = 'ng_agent_outcome'