Module 3: Memory and planning · 9 min
Short-term and long-term memory
A model has no memory between calls. Whatever it should 'remember' must be sent to it again.
| Type | Where it lives | Use |
|---|---|---|
| Short-term | The current conversation and tool results inside the context window | The task in progress |
| Long-term | A database or files outside the model, searched when needed | User preferences, past tasks, notes |
Context windows fill up. Good agents summarise old steps, drop what is no longer needed and keep notes in a file or database to read back later.
← Designing tools a model can use | Planning and the ReAct pattern →