Table of Contents

Class MessageHistoryItem

Namespace
FoundationaLLM.Common.Models.Conversation
Assembly
FoundationaLLM.Common.dll

Represents an item in the message history.

public class MessageHistoryItem
Inheritance
MessageHistoryItem
Inherited Members
Extension Methods

Constructors

MessageHistoryItem(string, string, string?)

Represents an item in the message history.

public MessageHistoryItem(string sender, string text, string? textRewrite)

Parameters

sender string

The sender of the message (e.g., "Agent", "User")

text string

The message text.

textRewrite string

The rewritten message text.

Properties

Attachments

Gets or sets the list of attachments for the message.

[JsonPropertyName("attachments")]
public List<AttachmentDetail> Attachments { get; set; }

Property Value

List<AttachmentDetail>

ContentArtifacts

Gets or sets the list ContentArtifact objects.

[JsonPropertyName("content_artifacts")]
public List<ContentArtifact>? ContentArtifacts { get; set; }

Property Value

List<ContentArtifact>

Remarks

Not all content artifacts are loaded. The content of the list depends on the content artifact types configured in the message history settings of the agent.

Sender

The sender of the message (e.g. "Agent", "User").

[JsonPropertyName("sender")]
public string Sender { get; set; }

Property Value

string

Text

The message text.

[JsonPropertyName("text")]
public string Text { get; set; }

Property Value

string

TextRewrite

Gets or sets the rewritten text.

[JsonPropertyName("text_rewrite")]
public string? TextRewrite { get; set; }

Property Value

string

Remarks

The rewritten text is filled in if the agent's text rewriting feature is enabled. If set, it contains an unambiguous version of the original text.