Skip to content

AssistantToolApprovalRequestPart

Namespace: Vercel.AI.Provider

public sealed class AssistantToolApprovalRequestPart : AssistantContentPart

A request to approve a tool call, kept in an assistant message.

Inheritance: object → AssistantContentPart

View source

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?

View source

public string ApprovalId { get; }

Approval id.

Value: string

View source

public bool? IsAutomatic { get; }

Whether the approval was decided automatically, when known.

Value: bool?

View source

public string ToolCallId { get; }

Id of the tool call that needs approval.

Value: string

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product