What is agent memory, and what types are there?
Quick-fire answer from the Awesome Generative AI Guide (MIT)
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Memory is how an agent carries information beyond a single turn or context window. Short-term (working) memory is the current context: recent messages, tool results, scratchpad. Long-term memory persists across sessions and is usually stored externally (a database or vector store) and retrieved on demand, covering durable facts, user preferences, and past outcomes. The engineering job is deciding what to write to long-term memory, how to retrieve the relevant slice into context, and how to keep it from growing stale or bloated. Memory is a context-engineering problem, not just a storage one.
Full worked answer
Memory is how an agent carries information beyond a single turn or context window. Short-term (working) memory is the current context: recent messages, tool results, scratchpad. Long-term memory persists across sessions and is usually stored externally (a database or vector store) and retrieved on demand, covering durable facts, user preferences, and past outcomes. The engineering job is deciding what to write to long-term memory, how to retrieve the relevant slice into context, and how to keep it from growing stale or bloated. Memory is a context-engineering problem, not just a storage one.
Learn more: Memory in agents (Agentic AI Crash Course)
What a good answer covers
- Memory is how an agent carries information beyond a single turn or context window
- Short-term (working) memory is the current context: recent messages, tool results, scratchpad
- Long-term memory persists across sessions and is usually stored externally (a database or vector store)…
- The engineering job is deciding what to write to long-term memory, how to retrieve the relevant slice…
- Memory is a context-engineering problem, not just a storage one
Key terms: Learn more
Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep