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
AuthorRoleSpecifies the author's role.
content
stringSpecifies the message content.
Exceptions
AddMessage(Message)
Adds a message to the history.
public void AddMessage(ChatHistory.Message message)
Parameters
message
ChatHistory.MessageA Message object that specifies the message to be added.