ToolApprovalRequestPart
Namespace: Vercel.AI
public sealed class ToolApprovalRequestPart : TextStreamPartA provider-executed tool call needs approval before the provider runs it.
Inheritance: object → TextStreamPart
Constructors
Section titled “Constructors”ToolApprovalRequestPart(GeneratedToolApprovalRequest)
Section titled “ToolApprovalRequestPart(GeneratedToolApprovalRequest)”public ToolApprovalRequestPart(GeneratedToolApprovalRequest request)Creates a tool-approval-request part.
Parameters
| Name | Type | Description |
|---|---|---|
request |
GeneratedToolApprovalRequest |
Properties
Section titled “Properties”ApprovalId
Section titled “ApprovalId”public string ApprovalId { get; }Approval id the response must carry.
Value: string
ToolCall
Section titled “ToolCall”public GeneratedToolCall ToolCall { get; }The tool call that needs approval.
Value: GeneratedToolCall
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product