ToolCallRepairError
Namespace: Vercel.AI.Util
public sealed class ToolCallRepairError : AiSdkError, ISerializable, IErrorMarkersThe repair of a tool call failed. Maps to ToolCallRepairError.
Inheritance: object → Exception → AiSdkError
Implements: ISerializable, IErrorMarkers
Constructors
Section titled “Constructors”ToolCallRepairError(Exception, AiSdkError, string?)
Section titled “ToolCallRepairError(Exception, AiSdkError, string?)”public ToolCallRepairError(Exception cause, AiSdkError originalError, string? message = null)Creates the error. <code class=“paramref”>cause</code> is the failure of the repair function and <code class=“paramref”>originalError</code> the NoSuchToolError or InvalidToolInputError that started the repair.
Parameters
| Name | Type | Description |
|---|---|---|
cause |
Exception | |
originalError |
AiSdkError | |
message |
string |
Fields
Section titled “Fields”ErrorMarker
Section titled “ErrorMarker”public const string ErrorMarker = "vercel.ai.error.AI_ToolCallRepairError"Marker for IsInstance(object).
Value: string
Properties
Section titled “Properties”OriginalError
Section titled “OriginalError”public AiSdkError OriginalError { get; }The error that started the repair.
Value: AiSdkError
Methods
Section titled “Methods”IsInstance(object?)
Section titled “IsInstance(object?)”public static bool IsInstance(object? error)Returns whether <code class=“paramref”>error</code> carries this error’s marker.
Parameters
| Name | Type | Description |
|---|---|---|
error |
object |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product