# dependency_refresh_supported

> **Function** in `deepagents_code`

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

Return whether a dependency-only refresh is possible for the install.

A dependency refresh reinstalls the *current* `deepagents-code` version with
upgraded dependency resolution (`uv tool install -U deepagents-code==<v>`).
Only uv-managed installs can express that without crossing to a newer app
version, so callers should refuse before prompting or shelling out. This is
the single source of truth for both the gate in the TUI and the refusal in
`perform_dependency_refresh`.

## Signature

```python
dependency_refresh_supported(
    method: InstallMethod | None = None,
) -> tuple[bool, str | None]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `method` | `InstallMethod \| None` | No | Install method override. Auto-detected if `None`. (default: `None`) |

## Returns

`tuple[bool, str | None]`

A `(supported, reason)` tuple. `reason` is `None` when supported, else a
user-facing explanation of why the refresh is refused.

---

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