Tool Execution Flow
model decides to call a tool tool executes structured output is returned AI uses the result in its response
Common Errors
missing required fields
unclear parameters
invalid inputs
Best Practices for Errors
prevent missing fields
include validation
return structured errors
avoid vague messages
Do’s
be specific about missing fields explain why it failed provide clear status
Don’ts
vague messages
no explanation
no guidance
