Table of Contents

Enum AuthorRole

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

Enumerates the various roles an author of a message can have in the messaging history.

public enum AuthorRole

Fields

Undefined = 0

For internal use only. Do not use in application code.

System = 1

Represents a system message that is neither created by a user nor a language model. System messages are used to define the behavior and context of the assistant.

User = 2

Represents a message authored by a user.

Assistant = 3

Represents a message generated by the language model.

TextRun = 4

Represents a segment of plain text to be inserted into the history without any special formatting.

BeginOfNewConversation = 5

Represents an empty message indicating the beginning of a new discussion.
It is primarily used for building training datasets stored with a ChatHistory object.