# should_notify_update

> **Function** in `deepagents_code`

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

Return whether the user should be notified about version *latest*.

Throttles notifications to at most once per `CACHE_TTL` period for a
given version, preventing repeated banners every session.

## Signature

```python
should_notify_update(
    latest: str,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `latest` | `str` | Yes | The version string to check against. |

## Returns

`bool`

`True` if the user should see the update banner, `False` if the
notification was already shown within the `CACHE_TTL` window.

---

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