> 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.path_utils

## Module Contents

### Functions

| Name                                                                            | Description                                                            |
| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [`aggregate_metrics_path_for`](#nemo_gym-path_utils-aggregate_metrics_path_for) | `results/rollouts.jsonl` -> `results/rollouts_aggregate_metrics.json`. |
| [`failures_path_for`](#nemo_gym-path_utils-failures_path_for)                   | -                                                                      |

### API

```python
nemo_gym.path_utils.aggregate_metrics_path_for(
    output_fpath: pathlib.Path
) -> pathlib.Path
```

`results/rollouts.jsonl` -> `results/rollouts_aggregate_metrics.json`.

Mirrors how rollout collection and reverification name the file they write, so consumers
(e.g. `gym eval compare`) derive the same path the writers produced.

```python
nemo_gym.path_utils.failures_path_for(
    output_fpath: pathlib.Path
) -> pathlib.Path
```