Stateful Agent Graphs
Model agent workflows as explicit graphs of state, nodes and conditional edges with checkpointed state, using a graph framework or plain code.
4 objectives 6 steps about 110 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Define a typed shared state and nodes that read and update it, with reducers for fields that several nodes write.
- Implement conditional routing, cycles with exit conditions and parallel branches.
- Persist state with a checkpointer to resume a thread, inspect its history and replay from an earlier step.
- Explain when a graph framework (for example LangGraph) adds value over a hand-written loop or a vendor agent SDK, and when it adds needless complexity.
Lesson plan
6 steps, about 110 min · 5 of 5 lessons available so far
- Agents as State Machines Concept · 15 min
- State, Nodes and Reducers Worked example · 20 min
- Lab: Routing, Cycles and Parallel Branches Lab · 25 min
- Checkpoints, Threads and Replay Lab · 25 min
- Graph Framework, Agent SDK or Plain Code? Concept · 15 min
- Check: Trace a Graph Execution Knowledge check · 8 questions
Practise it
Rebuild your framework-free agent as a graph with a router node, a tool node, a reflection node and a final-answer node; persist checkpoints to SQLite or Postgres, kill the process mid-run, resume the thread, and replay from an earlier checkpoint with a changed input.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.