AssistantToolApprovalRequestPart
Namespace: Vercel.AI.Provider
public sealed class AssistantToolApprovalRequestPart : AssistantContentPartA request to approve a tool call, kept in an assistant message.
Inheritance: object → AssistantContentPart
Constructors
Section titled “Constructors”AssistantToolApprovalRequestPart(string, string, bool?)
Section titled “AssistantToolApprovalRequestPart(string, string, bool?)”public AssistantToolApprovalRequestPart(string approvalId, string toolCallId, bool? isAutomatic = null)Creates a tool-approval-request part.
Parameters
| Name | Type | Description |
|---|---|---|
approvalId |
string | |
toolCallId |
string | |
isAutomatic |
bool? |
Properties
Section titled “Properties”ApprovalId
Section titled “ApprovalId”public string ApprovalId { get; }Approval id.
Value: string
IsAutomatic
Section titled “IsAutomatic”public bool? IsAutomatic { get; }Whether the approval was decided automatically, when known.
Value: bool?
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