ApprovalResponsePart
Namespace: Vercel.AI.GenerateText
public sealed class ApprovalResponsePart : ApprovalHistoryPartThe caller’s decision for an approval request.
Inheritance: object → ApprovalHistoryPart
Constructors
Section titled “Constructors”ApprovalResponsePart(string, bool, string?)
Section titled “ApprovalResponsePart(string, bool, string?)”public ApprovalResponsePart(string approvalId, bool approved, string? reason = null)Creates an approval response part.
Parameters
| Name | Type | Description |
|---|---|---|
approvalId |
string | |
approved |
bool | |
reason |
string |
Properties
Section titled “Properties”ApprovalId
Section titled “ApprovalId”public string ApprovalId { get; }Approval id.
Value: string
Approved
Section titled “Approved”public bool Approved { get; }Whether the call was approved.
Value: bool
Reason
Section titled “Reason”public string? Reason { get; }Denial reason, when the caller sent one.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product