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
Chapter 18Understanding the Agent's State › State Versus Memory
Reading section 9 of 12 · State Versus Memory · 1 minSection 9 of 12 · 1 min

Book contents

Section 9 of 12 · 1 min read

Understanding the Agent's State › State Versus MemoryOne section · Sections in this chapter9 / 12 ↓

You might be wondering: isn't state just memory? Not quite. They're related but distinct concepts.

Memory is the information the agent retains:

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.