ApprovalToolResultPart
Namespace: Vercel.AI.GenerateText
public sealed class ApprovalToolResultPart : ApprovalHistoryPartA tool result stored beside an approval response.
Inheritance: object → ApprovalHistoryPart
Constructors
Section titled “Constructors”ApprovalToolResultPart(string, string, string, JsonElement?, string?)
Section titled “ApprovalToolResultPart(string, string, string, JsonElement?, string?)”public ApprovalToolResultPart(string toolCallId, string toolName, string outputType, JsonElement? outputValue = null, string? reason = null)Creates a tool result part.
Parameters
| Name | Type | Description |
|---|---|---|
toolCallId |
string | |
toolName |
string | |
outputType |
string | |
outputValue |
JsonElement? | |
reason |
string |
Properties
Section titled “Properties”OutputType
Section titled “OutputType”public string OutputType { get; }Output type, such as text or execution-denied.
Value: string
OutputValue
Section titled “OutputValue”public JsonElement? OutputValue { get; }Output value for text and JSON results.
Value: JsonElement?
Reason
Section titled “Reason”public string? Reason { get; }Denial reason.
Value: string
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Tool call id.
Value: string
ToolName
Section titled “ToolName”public string ToolName { get; }Tool name.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product