> This page is for version Main (default).
> For other versions, use one of these documentation indexes:
> - Main (default): https://docs.nvidia.com/nemo/gym/main/llms.txt
> - 0.7.0: https://docs.nvidia.com/nemo/gym/v0.7.0/llms.txt
> - 0.6.0: https://docs.nvidia.com/nemo/gym/v0.6.0/llms.txt
> - 0.5.1: https://docs.nvidia.com/nemo/gym/v0.5.1/llms.txt
> - 0.5.0: https://docs.nvidia.com/nemo/gym/v0.5.0/llms.txt
> - 0.4.0: https://docs.nvidia.com/nemo/gym/v0.4.0/llms.txt
> - 0.3.0: https://docs.nvidia.com/nemo/gym/v0.3.0/llms.txt
> - 0.2.1: https://docs.nvidia.com/nemo/gym/v0.2.1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/gym/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/gym/_mcp/server.

# nemo_gym.agent_outcome

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

## Module Contents

### Classes

| Name                                                   | Description                                                           |
| ------------------------------------------------------ | --------------------------------------------------------------------- |
| [`AgentOutcome`](#nemo_gym-agent_outcome-AgentOutcome) | Additional evidence distinguishing causes of a failed agent response. |

### Data

[`AGENT_OUTCOME_METADATA_KEY`](#nemo_gym-agent_outcome-AGENT_OUTCOME_METADATA_KEY)

### API

```python
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)`

---

```python
nemo_gym.agent_outcome.AgentOutcome.require_registered_kind(
    value: str
) -> str
```

classmethod

Accept the shared vocabulary plus an explicitly undetermined cause.

```python
nemo_gym.agent_outcome.AgentOutcome.require_request_status() -> nemo_gym.agent_outcome.AgentOutcome
```

```python
nemo_gym.agent_outcome.AGENT_OUTCOME_METADATA_KEY = 'ng_agent_outcome'
```