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