← Back to Glossary
State / State Machine (Agents)
Representing agent context as an explicit state object updated deterministically after each step or node execution.
Why it exists
Replaces unpredictable prompt chaining with reliable, trackable, and debuggable execution graphs (core to LangGraph).
How it works
Defines a central state object (e.g. { messages, current_step, artifacts }). Graph nodes mutate state; edges inspect state to route.
Related terms
Where you'll use this
roadmap