ApprovalHistoryMessage
Namespace: Vercel.AI.GenerateText
public sealed class ApprovalHistoryMessageA message in the approval history.
Inheritance: object
Constructors
Section titled “Constructors”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> |
Properties
Section titled “Properties”public IReadOnlyList<ApprovalHistoryPart>? Parts { get; }Structured content. Null means the message is not a part list.
Value: IReadOnlyList<ApprovalHistoryPart>
public string Role { get; }Message role.
Value: string
public string? Text { get; }String content.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product