← Back to Glossary
State / State Machine (Agents)
Phase 04 · Agentstechnique

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.

Where you'll use this