Skip to content

ToolApprovalRequestStreamPart

Namespace: Vercel.AI.Provider

public sealed class ToolApprovalRequestStreamPart : LanguageModelStreamPart

A request to approve a tool call.

Inheritance: object → LanguageModelStreamPart

View source

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

View source

public string ApprovalId { get; }

Approval id the response must carry.

Value: string

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