# is_memory_auto_save_enabled

> **Function** in `deepagents_code`

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

Return whether the agent should proactively save learnings to memory.

Resolves the `memory.auto_save` option from env/`config.toml`, defaulting to
enabled. When disabled, memory is still loaded into context but the agent is
told not to auto-save.

## Signature

```python
is_memory_auto_save_enabled() -> bool
```

---

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