Interrupts and human-in-the-loop (graph level)
Notebook· 08.03· 120–150 min· Lesson 66 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Pause a graph anywhere with
interrupt(payload)and resume it withCommand(resume=value). - Build approve / edit / reject flows that ask again after a bad answer (through the graph, not a loop).
- Follow the interrupt rules: the node re-runs from its top, no
try/exceptaroundinterrupt, a stable order, idempotent code before it. - Handle interrupts inside tools and several interrupts at once (resume by id), and drive it all from notebook cells with live-updating output.
Before you start
Lessons 08.01–08.02; Lesson 04.04 (HumanInTheLoopMiddleware for agents).
