ToolApprovalRequest
Namespace: Vercel.AI
public sealed class ToolApprovalRequestA tool call the caller may approve before it runs.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”ArgumentsJson
Section titled “ArgumentsJson”public string ArgumentsJson { get; }JSON arguments.
Value: string
ToolCallId
Section titled “ToolCallId”public string ToolCallId { get; }Tool call id.
Value: string
ToolName
Section titled “ToolName”public string ToolName { get; }Tool name.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product