# is_valid_extra_name

> **Function** in `deepagents_code`

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

Return whether `extra` is safe to embed in package-extra syntax.

## Signature

```python
is_valid_extra_name(
    extra: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `extra` | `str` | Yes | Candidate extra name from CLI or slash-command input. |

## Returns

`bool`

`True` when the value is a conservative PEP 508-style extra name.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/update_check.py#L1073)