Skip to content

ApprovalHistoryMessage

Namespace: Vercel.AI.GenerateText

public sealed class ApprovalHistoryMessage

A message in the approval history.

Inheritance: object

View source

ApprovalHistoryMessage(string, string?, IReadOnlyList<ApprovalHistoryPart>?)

Section titled “ApprovalHistoryMessage(string, string?, IReadOnlyList<ApprovalHistoryPart>?)”
public ApprovalHistoryMessage(string role, string? text = null, IReadOnlyList<ApprovalHistoryPart>? parts = null)

Creates a message. <code class=“paramref”>parts</code> is null when the message content is a string.

Parameters

Name Type Description
role string
text string
parts IReadOnlyList<ApprovalHistoryPart>

View source

public IReadOnlyList<ApprovalHistoryPart>? Parts { get; }

Structured content. Null means the message is not a part list.

Value: IReadOnlyList<ApprovalHistoryPart>

View source

public string Role { get; }

Message role.

Value: string

View source

public string? Text { get; }

String content.

Value: string

View source

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