Table of Contents

Event AfterTextCompletion

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

Occurs during response generation as text is produced.

public event EventHandler<AfterTextCompletionEventArgs> AfterTextCompletion

Returns

EventHandler<AfterTextCompletionEventArgs>
Occurs during response generation as text is produced.
Implements

Examples

using var chat = new PdfChat(chatModel, embeddingModel);

chat.AfterTextCompletion += (sender, e) =>
{
    Console.Write(e.Text);
};

Remarks

Subscribe to this event to stream responses incrementally to the user interface.

Share