Tool results, failures and limits
Control what happens after a tool runs. Return a tool's output unchanged with result_as_answer, make quiet failures visible with ToolFailure and a failure policy, and cap how often a tool may be used with max_usage_count.
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.