Class ResponseGenerationStartedEventArgs
Provides data for the ResponseGenerationStarted event.
public sealed class ResponseGenerationStartedEventArgs : EventArgs
- Inheritance
-
ResponseGenerationStartedEventArgs
- Inherited Members
Examples
pdfChat.ResponseGenerationStarted += (sender, e) =>
{
string context = e.UsesFullContext ? "full document" : $"{e.PassageCount} passages";
Console.WriteLine($"Generating response for \"{e.Question}\" using {context}");
};
Constructors
- ResponseGenerationStartedEventArgs(string, bool, int)
Initializes a new instance of the ResponseGenerationStartedEventArgs class.
Properties
- PassageCount
Gets the number of passages being used as context. Only meaningful when UsesFullContext is
false.
- Question
Gets the user's question.
- UsesFullContext
Gets whether the response uses full document context or passage retrieval.