Understanding the Agent's State › State Versus Memory
Michael BrenndoerferJuly 7, 20251 min read
AI Agent HandbookAll chapters Part 7 of 15Agent State and Architecture - Putting It All Together
Understanding the Agent's State › State Versus MemoryOne section · Sections in this chapter9 / 12 ↓
Sections in this chapter12
You might be wondering: isn't state just memory? Not quite. They're related but distinct concepts.
Memory is the information the agent retains:
- Conversation history (short-term memory)
- Stored facts (long-term memory)
State is the complete picture of the agent's current situation:
- Memory (both short and long-term)
- Current goal and progress
- Intermediate results
- Tool availability and usage
- Task plan and execution status
Memory is a component of state, but state is broader. It includes everything the agent needs to know about what it's doing right now, not just what it remembers from the past.
Think of it this way: memory is what you know. State is what you know plus what you're doing and where you are in doing it.