# resolve_sdk_version

> **Function** in `deepagents_code`

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

Resolve the diagnostic `deepagents` SDK version.

Compatibility wrapper for callers that only need one SDK version string and
lookup status. Every editable install carries an `+editable` local segment,
matching how the SDK stamps `lc_versions["deepagents"]`. For sibling monorepo
packages whose stable source marker trails dcode's exact SDK pin, the pin
identifies the nearest published baseline the workspace HEAD represents.

## 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/2069079e09546060f5b52b2cd4f0e3c813e820f3/libs/code/deepagents_code/extras_info.py#L971)