|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # 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<Message> Messages { get; }
- ```
-
- #### Property Value
-
- [List<Message>](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1)<br>
-
- ## 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)<br>
- Role of the message author
-
- `content` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
- Message content
|