970 B
970 B
ChatHistory
Namespace: LLama.Common
The chat history class
public class ChatHistory
Inheritance Object → ChatHistory
Properties
Messages
List of messages in the chat
public List<Message> Messages { get; }
Property Value
Constructors
ChatHistory()
Create a new instance of the chat content class
public ChatHistory()
Methods
AddMessage(AuthorRole, String)
Add a message to the chat history
public void AddMessage(AuthorRole authorRole, string content)
Parameters
authorRole
AuthorRole
Role of the message author
content
String
Message content