Skip to content

ApprovalRequestPart

Namespace: Vercel.AI.GenerateText

public sealed class ApprovalRequestPart : ApprovalHistoryPart

A request that a tool call be approved.

Inheritance: object → ApprovalHistoryPart

View source

public ApprovalRequestPart(string approvalId, string toolCallId)

Creates an approval request part.

Parameters

Name Type Description
approvalId string
toolCallId string

View source

public string ApprovalId { get; }

Approval id.

Value: string

View source

public string ToolCallId { get; }

Tool call id.

Value: string

View source

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