Decisions API with agents
See how a small classification call answers a yes or no question about a request, and how your code uses that answer to block a run, ask for approval or pick a model.
11 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 11 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