Class ChatHistory.Message
- Namespace
- LMKit.TextGeneration.Chat
- Assembly
- LM-Kit.NET.dll
Represents a chat message exchanged in a conversation, encapsulating the author, content, 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.
Properties
- AuthorRole
Gets the role of the message's author, defined by the AuthorRole enum.
- Content
Gets the content of the message.
- GeneratedTokens
Gets the number of tokens generated during the text completion process.
- IsProcessed
Indicates whether the message has been processed.
- TerminationReason
Gets the reason why the assistant's text generation process was terminated.
Events
- PropertyChanged
Occurs when a property value changes.