# get_user_agents_dir

> **Function** in `deepagents_code`

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

Return the custom-subagent directory for an agent profile.

## Signature

```python
get_user_agents_dir(
    agent_name: str,
) -> Path
```

---

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