# get_extras_status

> **Function** in `deepagents_cli`

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

Return installed optional dependencies grouped by extra.

Reads `Requires-Dist` metadata from the named distribution, groups the
entries gated by `extra == "..."` markers under their extra name, and
resolves each package's installed version via `importlib.metadata`.
Packages that are not installed are omitted; extras whose entire
package list is absent are dropped.

Composite meta-extras that only bundle other extras (see
`_COMPOSITE_EXTRAS`) and self-references to the distribution itself
are skipped — their components already appear under their own extras.

## Signature

```python
get_extras_status(
    distribution_name: str = 'deepagents-cli',
) -> ExtrasStatus
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `distribution_name` | `str` | No | Name of the installed distribution to inspect. (default: `'deepagents-cli'`) |

## Returns

`ExtrasStatus`

Mapping from extra name to a sorted list of `(package, version)`
tuples for packages that are currently installed. An empty
mapping is returned when the distribution itself is not found.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/64d45f67c86edb4df2ced0e7b82f1a8fd158ec8c/libs/cli/deepagents_cli/extras_info.py#L105)