Table of Contents

Class ChatHistory.Message

Namespace
LMKit.TextGeneration.Chat
Assembly
LM-Kit.NET.dll

Represents a chat message exchanged in a conversation, encapsulating the author, textual content, segments, attachments, and processing status of the message.

public sealed class ChatHistory.Message : INotifyPropertyChanged
Inheritance
ChatHistory.Message
Implements
Inherited Members

Constructors

Message(AuthorRole, string)

Initializes a new instance of the ChatHistory.Message class with the specified author role and content.

Message(AuthorRole, string, TextSegmentType)

Initializes a new ChatHistory.Message with an explicit initial segment type.

Properties

Attachments

Gets the collection of attachments associated with the message.

AuthorRole

Gets the role of the message's author, defined by the AuthorRole enum.

Content

Gets the textual content of the message.

GeneratedTokens

Gets the number of tokens generated during the text completion process.

IsProcessed

Indicates whether the message has been processed.

PreviousContent

Gets a read-only list of previous versions of the message content.

Segments

Gets the list of segments that compose this message.

TerminationReason

Gets the reason why the assistant's text generation process was terminated.

Methods

ToString()

Events

PropertyChanged

Occurs when a property value changes.