Property ChatHistory
ChatHistory
Gets the conversation history containing all exchanged messages.
public ChatHistory ChatHistory { get; }
Property Value
Examples
using var chat = new PdfChat(chatModel, embeddingModel);
await chat.LoadDocumentAsync("report.pdf");
await chat.SubmitAsync("What is this about?");
Console.WriteLine($"Messages exchanged: {chat.ChatHistory.MessageCount}");