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
stringThe sender of the message (e.g., "Agent", "User")
text
stringThe message text.
textRewrite
stringThe 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
ContentArtifacts
Gets or sets the list ContentArtifact objects.
[JsonPropertyName("content_artifacts")]
public List<ContentArtifact>? ContentArtifacts { get; set; }
Property Value
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
Text
The message text.
[JsonPropertyName("text")]
public string Text { get; set; }
Property Value
TextRewrite
Gets or sets the rewritten text.
[JsonPropertyName("text_rewrite")]
public string? TextRewrite { get; set; }
Property Value
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.