# resolve_relative_path

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/plugins/manifest/resolve_relative_path)

Resolve one path declared relative to `plugin_root`.

Plugin manifest component fields must start with `./`. Marketplace source
paths must not, because the marketplace format also accepts a bare relative
path such as `tools/my-plugin`; those callers pass
`require_dot_prefix=False`. Both forms stay inside `plugin_root`.

## Signature

```python
resolve_relative_path(
    declaration: str,
    plugin_root: Path,
    *,
    require_dot_prefix: bool = True,
) -> tuple[Path | None, str | None]
```

## Returns

`Path | None`

`(path, None)` when the declaration resolves, or `(None, reason)`

---

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