ToolApprovalRequestStreamPart
Namespace: Vercel.AI.Provider
public sealed class ToolApprovalRequestStreamPart : LanguageModelStreamPartA request to approve a tool call.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”ToolApprovalRequestStreamPart(string, string)
Section titled “ToolApprovalRequestStreamPart(string, string)”public ToolApprovalRequestStreamPart(string approvalId, string toolCallId)Creates a tool-approval-request part.
Parameters
| Name | Type | Description |
|---|---|---|
approvalId |
string | |
toolCallId |
string |
Properties
Section titled “Properties”ApprovalId
Section titled “ApprovalId”public string ApprovalId { get; }Approval id the response must carry.
Value: string
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Id of the tool call that needs approval.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product