Tool Error Handling
Domain: Tools & Function Calling
π― Motivation
When a tool call fails (API down, invalid parameters, timeout), the agent must handle the error gracefully.
π Concrete Example
Tool call: get_weather(Mars) -> Error: βCity not found.β Agent handles: βI could not find weather for Mars. Did you mean a city on Earth?β It does not crash; it adapts.
π Analogy
A delivery driver getting a flat tire - they do not abandon the delivery. They call for help, find alternative transport, or notify the customer. Tool error handling is the agent adapting when tools fail.