# get_cached_update_available

> **Function** in `deepagents_code`

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

Check for updates using only a fresh local cache entry.

This is the startup fast path: it never contacts PyPI. Stale, missing,
corrupt, or unparsable cache data is treated as "no cached update answer" so
callers can launch immediately and let a background update check refresh the
cache later.

## Signature

```python
get_cached_update_available() -> tuple[bool, str | None]
```

## Returns

`tuple[bool, str | None]`

A `(available, latest)` tuple. `latest` is `None` when the cache cannot
provide a fresh answer.

---

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