InterfaceISummaryProvider
Interface
Defines methods for providing summaries and answering questions about documents.
Definition
Namespace:Telerik.WinControls.UI.AIProviders
Assembly:Telerik.WinControls.PdfViewer.dll
Syntax:
cs-api-definition
public interface ISummaryProvider
Properties
PromptAddition
Gets or sets additional instructions to be appended to the prompt for summarization or question answering.
Methods
AskQuestion(string, SimpleTextDocument)
Asks a question about the specified document and returns the answer.
Declaration
cs-api-definition
string AskQuestion(string question, SimpleTextDocument simpleDocument)
Parameters
question
The question to ask.
simpleDocument
The document to use as context for the question.
Returns
The answer string generated by the provider.
GetSummary(SimpleTextDocument)
Generates a summary for the specified document.
Declaration
cs-api-definition
string GetSummary(SimpleTextDocument simpleDocument)
Parameters
simpleDocument
The document to summarize.
Returns
A summary string generated by the provider.