> 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.rollouts.harness_capabilities.behavior

Checks against controlled observations; independent of artifact validation and process exit.

## Module Contents

### Functions

| Name                                                                                                    | Description                                                                              |
| ------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| [`_mapping`](#nemo_gym-rollouts-harness_capabilities-behavior-_mapping)                                 | -                                                                                        |
| [`_objects`](#nemo_gym-rollouts-harness_capabilities-behavior-_objects)                                 | -                                                                                        |
| [`_terminal_error_reported`](#nemo_gym-rollouts-harness_capabilities-behavior-_terminal_error_reported) | Compare the scripted provider error with the response received by the EnvironmentServer. |
| [`inspect_behavior`](#nemo_gym-rollouts-harness_capabilities-behavior-inspect_behavior)                 | Check saved evidence and observations against explicit test expectations.                |
| [`model_checks`](#nemo_gym-rollouts-harness_capabilities-behavior-model_checks)                         | Compare canonical fields to the independently scripted endpoint exchanges.               |
| [`tool_checks`](#nemo_gym-rollouts-harness_capabilities-behavior-tool_checks)                           | -                                                                                        |

### API

```python
nemo_gym.rollouts.harness_capabilities.behavior._mapping(
    value: object
) -> dict
```

```python
nemo_gym.rollouts.harness_capabilities.behavior._objects(
    value: object
) -> list[dict]
```

```python
nemo_gym.rollouts.harness_capabilities.behavior._terminal_error_reported(
    attempts: list[dict],
    responses: list[dict],
    expected_status: int
) -> bool
```

Compare the scripted provider error with the response received by the EnvironmentServer.

```python
nemo_gym.rollouts.harness_capabilities.behavior.inspect_behavior(
    witness: dict | None,
    record: dict | None,
    http_errors: tuple[int, ...],
    terminal_error: bool,
    tool_steps: int,
    expected_reward: float,
    fingerprint: collections.abc.Callable,
    judge_verifier: bool = False
) -> list[dict]
```

Check saved evidence and observations against explicit test expectations.

```python
nemo_gym.rollouts.harness_capabilities.behavior.model_checks(
    record: dict | None,
    attempts: list[dict],
    fingerprint: collections.abc.Callable,
    available: bool = True
) -> list[dict]
```

Compare canonical fields to the independently scripted endpoint exchanges.

```python
nemo_gym.rollouts.harness_capabilities.behavior.tool_checks(
    record: dict | None,
    witnessed: list[dict],
    finish_id: str | None = None,
    applies: bool = True,
    available: bool = True
) -> list[dict]
```