# is_reserved_agent_dir_name

> **Function** in `deepagents_code`

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

Report whether `name` resolves onto an app-owned profile directory.

Use this instead of `name in reserved_agent_dir_names()` wherever the
input is a user-supplied agent name: the membership test is exact-string
and misses case and trailing-dot aliases that the filesystem itself would
resolve onto the reserved directory.

## Signature

```python
is_reserved_agent_dir_name(
    name: str,
) -> bool
```

## Returns

`bool`

`True` when `name` names an app-owned directory.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/_reserved_names.py#L115)