Skip to course content
Free LangGraph course

LangGraph for Agentic Workflows

Module 02 Activity

Scenario

The structure decision is made and it is a graph. Now it has to be designed on paper, before any node body exists.

What you build

A complete graph design as data - state fields, nodes, edges and the condition on every edge - plus the two checks that design makes possible.

Steps

  1. List the state fields with their types and, for each, which node owns it.
  2. List the nodes, one line each, describing exactly what changes in the state. If a description needs the word 'and', split the node.
  3. List every edge with its condition. Fixed edges say 'always'.
  4. Check every cycle has a counter in the state and a ceiling in a router.
  5. Check every node with a side effect, and confirm no retry path can reach it twice.
  6. Implement the graph and confirm each node is testable with a plain dictionary, no graph required.

Evidence to hand in

Review checklist