Tool Call Repair | AI SDK Agents | AI SDK Agents
AI SDK icon
Tool Call Repair Demo
Repair invalid tool calls using
experimental_repairToolCall
. Fix schema validation errors without requiring additional steps that pollute message history. Uses structured outputs to automatically repair invalid tool calls.
Weather in San Francisco (No repair)
Weather in Kelvin (Will repair)
Weather with wrong type (Will repair)