Table of Contents

Method AddMessage

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

AddMessage(AuthorRole, string)

Adds a message to the history.

public void AddMessage(AuthorRole authorRole, string content)

Parameters

authorRole AuthorRole

Specifies the author's role.

content string

Specifies the message content.

Exceptions

ArgumentException

AddMessage(Message)

Adds a message to the history.

public void AddMessage(ChatHistory.Message message)

Parameters

message ChatHistory.Message

A Message object that specifies the message to be added.

Exceptions

ArgumentException