# export_profile_env

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/_paths/export_profile_env)

Pin the resolved profile selection into a child environment.

Writes the resolved root, then sets or clears the defaulted/configured
marker, so a child reconstructs the same snapshot the parent captured.
Both keys are always written. The marker is removed rather than left in
place when the profile is configured, because a stale inherited marker
would describe a profile it no longer applies to.

## Signature

```python
export_profile_env(
    env: MutableMapping[str, str],
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `env` | `MutableMapping[str, str]` | Yes | Environment mapping to update in place. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/_paths.py#L939)