Understanding the Agent's State › What Is State?
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 › What Is State?One section · Sections in this chapter2 / 12 ↓
Sections in this chapter12
In the simplest terms, state is everything your agent knows about its current situation. It's the collection of information that determines what the agent should do next.
For our personal assistant, state includes:
- The current goal: What is the user trying to accomplish right now?
- Conversation history: What has been discussed in this session?
- Long-term knowledge: What facts does the agent remember about the user?
- Intermediate results: What has the agent computed or retrieved so far?
- Available tools: What capabilities can the agent use?
- Tool usage history: Which tools has the agent already tried?
- Current task progress: If working on a multi-step task, which steps are complete?
Let's see why this matters with a concrete example.