Property ChatHistory
ChatHistory
Gets the conversation history containing all exchanged messages.
public ChatHistory ChatHistory { get; }
Property Value
Examples
using var chat = new RagChat(ragEngine, chatModel);
await chat.SubmitAsync("What is RAG?");
// Inspect the conversation history
Console.WriteLine($"Messages exchanged: {chat.ChatHistory.MessageCount}");