# 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/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/extras_info.py#L210)