A stateful agent is an autonomous AI system that maintains an internal representation of its operational context, history, and intermediate results across multiple interactions or task steps. This persistent internal state distinguishes it from a stateless agent, which processes each request in isolation. The state typically includes conversation history, tool execution results, partial task outputs, and environmental observations, enabling continuity and long-horizon reasoning. This architecture is fundamental to agentic workflows and multi-step planning.
