Table of Contents

Property ChatHistory

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

ChatHistory

Gets the conversation history containing all exchanged messages.

public ChatHistory ChatHistory { get; }

Property Value

ChatHistory

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}");
Share