# ChatHistory Namespace: LLama.Common The chat history class ```csharp public class ChatHistory ``` Inheritance [Object](https://docs.microsoft.com/en-us/dotnet/api/system.object) → [ChatHistory](./llama.common.chathistory.md) ## Properties ### **Messages** List of messages in the chat ```csharp public List Messages { get; } ``` #### Property Value [List<Message>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1)
## Constructors ### **ChatHistory()** Create a new instance of the chat content class ```csharp public ChatHistory() ``` ## Methods ### **AddMessage(AuthorRole, String)** Add a message to the chat history ```csharp public void AddMessage(AuthorRole authorRole, string content) ``` #### Parameters `authorRole` [AuthorRole](./llama.common.authorrole.md)
Role of the message author `content` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)
Message content