# resolve_managed_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/configuration/paths/resolve_managed_path)

Return the fixed managed-config path and whether it is authoritative.

What the snapshot loader reads. Callers that report health need this rather
than `managed_config_path`, so a guessed path is never mistaken for an
authoritative one.

## Signature

```python
resolve_managed_path(
    *,
    platform: str | None = None,
    environ: Mapping[str, str] | None = None,
) -> ResolvedManagedPath
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `platform` | `str \| None` | No | Override the detected platform; intended for tests. (default: `None`) |
| `environ` | `Mapping[str, str] \| None` | No | Test-only injection point for the Windows branch. Production passes `None` so the ProgramData directory comes from the registry. Passing a real environment restores the redirection this module exists to prevent. (default: `None`) |

## Returns

`ResolvedManagedPath`

The path for the platform, paired with the reason it is a guess.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/configuration/paths.py#L123)