Human-in-the-loop for agents
Notebook· 04.06· 120–150 min· Lesson 38 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 an agent before a sensitive tool runs with
HumanInTheLoopMiddleware, and read the pause (version="v2"→.interrupts). - Resume with each decision type: approve, edit, reject, respond, and with several decisions at once.
- Configure policies per tool: allowed decisions, descriptions, and conditional
when=rules. - Explain why HITL needs a checkpointer, and make a pause survive a kernel restart (SQLite).
Before you start
Lessons 04.01–04.05; Lesson 03.02 (checkpointers).
Python in this lesson
Python guideNew heredel
