# get_optional_dependency_status

> **Function** in `deepagents_code`

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

Return installed and missing optional dependencies grouped by extra.

## Signature

```python
get_optional_dependency_status(
    distribution_name: str = 'deepagents-code',
    *,
    strict: bool = False,
) -> tuple[ExtraDependencyStatus, ...]
```

## 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

`tuple[ExtraDependencyStatus, ...]`

Sorted tuple of optional extra statuses. An empty tuple is returned
when the distribution itself is not found.

---

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