Human-in-the-loop, guardrails, and fault tolerance
Notebook· 11.08· 1.5–2 h· Lesson 94 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 deep agent before a risky tool call and resume it with approve, edit, or reject.
- Require approval by path with
FilesystemPermission(mode="interrupt"). - Add guardrails as middleware: PII redaction and per-tool call limits.
- Survive rate limits and outages: retries with backoff, model fallback, graceful failure.
Before you start
Lessons 11.02, 11.04, 11.07; Lesson 04.04 (interrupts and human review).
Python in this lesson
Python guideNew hereinput()
