Guardrails
Guardrails are checks that run beside your agent. See an input check and an output check pass, a tripwire stop a run with an exception, and a tool guardrail reject one tool call while the run continues.
12 minPro
Checking your access…
Inside this lesson
- An animation you play, pause and step through, with each part saying what it is doing.
- The real code beside it, with the lines for each step lit up.
- Practice mode, where you route each message yourself, and a short quiz.
- About 12 minutes.
Written from the official documentation
In this module: Guardrails and human control
- GuardrailsCheck input, output and tool calls, and stop a run on a tripwire.Pro
- Human in the loopPause for approval, then resume.Pro
- RunState and durable approvalsSave a paused run, resume it later and survive restarts.Pro
- Decisions API with agentsUse classification answers in guardrails, approvals and routing.Pro