# resolve_sdk_version

> **Function** in `deepagents_code`

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

Resolve the installed `deepagents` SDK version.

Compatibility wrapper over `collect_sdk_version_info` for callers that only
need the primary version and lookup status. Editable installs can have stale
package metadata after local version files change, so they prefer the source
tree's `_version.py` and fall back to metadata when the source version is
unavailable. Distinguishes a genuinely missing package from an unexpected
metadata error so diagnostic callers can report the two differently, while
collapse-friendly callers can ignore the split.

## Signature

```python
resolve_sdk_version() -> tuple[str | None, DistributionMetadataStatus]
```

## Returns

`tuple[str | None, DistributionMetadataStatus]`

`(version, status)`. `version` is the resolved version string when
`status` is `"resolved"`, otherwise `None`.

---

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