AI / Agentic AI Interview Questions
What are the types of memory used by AI agents?
Agent memory is generally split into a few distinct types, each serving a different purpose.
| Memory type | What it stores |
| Short-term memory | The active conversation and context within the current session, roughly equivalent to the LLM's context window |
| Long-term memory | Persistent knowledge from past sessions, often stored in an external vector database |
| Episodic memory | Specific past events captured with temporal information, letting the agent recall what happened and when |
Short-term memory disappears once the session ends unless it's explicitly written to long-term storage, which is why persistent agents need a deliberate mechanism for deciding what's worth remembering beyond the current conversation.
More Related questions...