CollectedToolApproval
Namespace: Vercel.AI.GenerateText
public sealed class CollectedToolApprovalOne approval that still needs execution or denial handling.
Inheritance: object
Constructors
Section titled “Constructors”CollectedToolApproval(ApprovalRequestPart, ApprovalResponsePart, ApprovalToolCallPart, ApprovalToolResultPart?)
Section titled “CollectedToolApproval(ApprovalRequestPart, ApprovalResponsePart, ApprovalToolCallPart, ApprovalToolResultPart?)”public CollectedToolApproval(ApprovalRequestPart approvalRequest, ApprovalResponsePart approvalResponse, ApprovalToolCallPart toolCall, ApprovalToolResultPart? existingToolResult = null)Creates a collected approval.
Parameters
| Name | Type | Description |
|---|---|---|
approvalRequest |
ApprovalRequestPart | |
approvalResponse |
ApprovalResponsePart | |
toolCall |
ApprovalToolCallPart | |
existingToolResult |
ApprovalToolResultPart |
Properties
Section titled “Properties”ApprovalRequest
Section titled “ApprovalRequest”public ApprovalRequestPart ApprovalRequest { get; }Matching approval request.
Value: ApprovalRequestPart
ApprovalResponse
Section titled “ApprovalResponse”public ApprovalResponsePart ApprovalResponse { get; }Approval response.
Value: ApprovalResponsePart
ExistingToolResult
Section titled “ExistingToolResult”public ApprovalToolResultPart? ExistingToolResult { get; }Existing tool result, when a denied call already has an execution-denied output.
Value: ApprovalToolResultPart
ToolCall
Section titled “ToolCall”public ApprovalToolCallPart ToolCall { get; }Tool call the approval refers to.
Value: ApprovalToolCallPart
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product