# installed_extra_names

> **Function** in `deepagents_code`

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

Return extras with at least one installed dependency.

Deliberately looser than `get_extras_status`, which requires every declared
package to be present. Callers here rebuild install commands, so a partially
installed extra must still be preserved across an upgrade; dropping it would
silently uninstall what the user asked for. Do not harmonize the two.

## Signature

```python
installed_extra_names(
    distribution_name: str = 'deepagents-code',
    *,
    strict: bool = False,
) -> set[str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `distribution_name` | `str` | No | Name of the installed distribution to inspect. (default: `'deepagents-code'`) |
| `strict` | `bool` | No | Raise when the distribution metadata cannot be read or parsed reliably. (default: `False`) |

## Returns

`set[str]`

Set of extra names whose optional dependency metadata has at least one
installed package. Composite extras are excluded.

---

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