Skip to content

ApprovalResponsePart

Namespace: Vercel.AI.GenerateText

public sealed class ApprovalResponsePart : ApprovalHistoryPart

The caller’s decision for an approval request.

Inheritance: object → ApprovalHistoryPart

View source

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

View source

public string ApprovalId { get; }

Approval id.

Value: string

View source

public bool Approved { get; }

Whether the call was approved.

Value: bool

View source

public string? Reason { get; }

Denial reason, when the caller sent one.

Value: string

View source

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