ToolUIApproval
Namespace: Vercel.AI.Ui
public sealed class ToolUIApprovalThe approval of a tool call in a ToolUIPart.
Inheritance: object
Constructors
Section titled “Constructors”ToolUIApproval(string)
Section titled “ToolUIApproval(string)”public ToolUIApproval(string id)Creates an approval.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string |
Properties
Section titled “Properties”Approved
Section titled “Approved”public bool? Approved { get; init; }Whether the call was approved. Null while the approval is requested.
Value: bool?
public string Id { get; }The approval id.
Value: string
IsAutomatic
Section titled “IsAutomatic”public bool? IsAutomatic { get; init; }Whether the approval was decided automatically.
Value: bool?
Reason
Section titled “Reason”public string? Reason { get; init; }Why the call was approved or denied.
Value: string
RequestReason
Section titled “RequestReason”public string? RequestReason { get; init; }Why the approval was requested.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product