本页还没有译文
本页 6 段还没译成Español,下面显示的是英文原文。ToolCallRepairError
还没翻译译自英文(ai-sdk.dev)本页 6 段都还没译
This error occurs when there is a failure while attempting to repair an invalid tool call.
This typically happens when the AI attempts to fix either
a NoSuchToolError or InvalidToolInputError.
Properties
originalError: The original error that triggered the repair attempt (eitherNoSuchToolErrororInvalidToolInputError)message: The error messagecause: The underlying error that caused the repair to fail
Checking for this Error
You can check if an error is an instance of ToolCallRepairError using:
import { ToolCallRepairError } from 'ai';
if (ToolCallRepairError.isInstance(error)) {
// Handle the error
}AI 翻译查看英文原文