ToolErrorPart
Namespace: Vercel.AI
public sealed class ToolErrorPart : TextStreamPartA tool call failed or was denied. A successful call is a ToolResultPart.
Inheritance: object → TextStreamPart
Constructors
Section titled “Constructors”ToolErrorPart(ExecutedTool)
Section titled “ToolErrorPart(ExecutedTool)”public ToolErrorPart(ExecutedTool result)Creates a tool-error part.
Parameters
| Name | Type | Description |
|---|---|---|
result |
ExecutedTool |
Properties
Section titled “Properties”Result
Section titled “Result”public ExecutedTool Result { get; }The failed tool result. OutputJson holds the error.
Value: ExecutedTool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product