Skip to content

ToolApprovalRequest

Namespace: Vercel.AI

public sealed class ToolApprovalRequest

A tool call the caller may approve before it runs.

Inheritance: object

View source

ToolApprovalRequest(string, string, string)

Section titled “ToolApprovalRequest(string, string, string)”
public ToolApprovalRequest(string toolCallId, string toolName, string argumentsJson)

Creates an approval request.

Parameters

Name Type Description
toolCallId string
toolName string
argumentsJson string

View source

public string ArgumentsJson { get; }

JSON arguments.

Value: string

View source

public string ToolCallId { get; }

Tool call id.

Value: string

View source

public string ToolName { get; }

Tool name.

Value: string

View source

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