Skip to course content
Free LangGraph course

LangGraph for Agentic Workflows

Module 08 Activity

Scenario

The workflow is correct and takes ninety seconds. Everything in this module is about what the person waiting can see.

What you build

A streamed progress experience with human labels, a cancellation path and per-node time budgets.

Steps

  1. Switch to stream and emit one event per finished node. Confirm nothing about the graph changed.
  2. Choose the streaming mode per surface: steps for the progress line, tokens only for the final readable node. Say why values is not used.
  3. Write the label map as one dictionary next to the graph, and include the position in the sequence.
  4. Add a cancelled flag checked at the top of every node, before any effect. Cancel mid-run and show the state is consistent.
  5. Set a per-node time budget from observed durations and surface runs that exceed it, showing the node, elapsed time and a cancel option.

Evidence to hand in

Review checklist