# Agent State

- **Canonical URL:** https://getaimath.com/dictionary/agent-state/
- **Topics:** [AI Agents & Agentic AI](https://getaimath.com/dictionary/category/ai-agents-and-agentic-ai/)
- **Last updated:** 2026-11-25

## What is Agent State?

**In one sentence:** Agent state is everything that describes where an agent is in its task right now: its goal, progress, data and pending steps.

Keeping track of state lets agents pause, resume and recover from errors. Systems often save state so work is not lost.

![Chatbot vs. AI Agent: Giving Advice vs. Doing the Chore — Simple cartoon comparing a Chatbot (gives you a recipe and stops) with an AI Agent (plans steps, uses tools like your calendar and browser, checks if it worked, and finishes the job).](https://getaimath.com/diagrams/ai-agents-and-agentic-ai.png)
*Napkin Diagram (AI Agents & Agentic AI): A regular chatbot just talks back; an AI agent has hands (tools) and loops until the chore is actually finished.*

## What is an example of Agent State?

"Step 4 of 7: 3 files edited, tests failing on login" is part of an agent's state.

## Why does Agent State matter?

Clear state makes agents more reliable and easier to debug.

## Related Concepts

- [Agent Memory](https://getaimath.com/dictionary/agent-memory/): Agent memory is how an AI agent stores and recalls information across steps or sessions.
- [Task Decomposition](https://getaimath.com/dictionary/task-decomposition/): Task decomposition is breaking a big task into smaller, easier sub-tasks.
- [Tool Execution](https://getaimath.com/dictionary/tool-execution/): Tool execution is the step where the app actually runs the tool the model asked for and returns the result.
- [Goal Planning](https://getaimath.com/dictionary/goal-planning/): Goal planning is turning a high-level goal into a concrete plan of actions an agent can follow.
- [Tool Schema](https://getaimath.com/dictionary/tool-schema/): A tool schema is a structured description of a tool, telling the model its name, what it does and what inputs it needs.
- [ReAct](https://getaimath.com/dictionary/react/): ReAct is a popular agent method where the model alternates between reasoning and acting.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/agent-state/)
