> This page is for version 0.5.0.
> 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.

# nemo_gym.agents.context_management.materialization

Materialize policy plans into Responses-API request views.

## Module Contents

### Functions

| Name                                                                                                                     | Description                                                             |
| ------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------- |
| [`_marker_part_for`](#nemo_gym-agents-context_management-materialization-_marker_part_for)                               | -                                                                       |
| [`descriptor_is_append_compatible`](#nemo_gym-agents-context_management-materialization-descriptor_is_append_compatible) | Return whether the current semantic view only appends to the prior one. |
| [`materialize_history_view`](#nemo_gym-agents-context_management-materialization-materialize_history_view)               | -                                                                       |

### API

```python
nemo_gym.agents.context_management.materialization._marker_part_for(
    image_part: typing.Mapping[str, typing.Any],
    text: str
) -> dict[str, str]
```

```python
nemo_gym.agents.context_management.materialization.descriptor_is_append_compatible(
    previous_completed_descriptor: typing.Sequence[str] | None,
    current_descriptor: typing.Sequence[str]
) -> bool
```

Return whether the current semantic view only appends to the prior one.

```python
nemo_gym.agents.context_management.materialization.materialize_history_view(
    history: nemo_gym.agents.context_management.history.SemanticHistory,
    plan: nemo_gym.agents.context_management.history.HistoryViewPlan
) -> nemo_gym.agents.context_management.history.MaterializedHistoryView
```