# clear_caches

> **Function** in `deepagents_code`

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

Reset module-level caches so the next call recomputes from scratch.

Intended for tests and for the `/reload` command.

## Signature

```python
clear_caches() -> None
```

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/0412009c5441bef8d75a427e1da8909e33ab5b56/libs/code/deepagents_code/model_config.py#L743)