Interface
ISummaryProvider

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.

Declaration

cs-api-definition
string PromptAddition { get; set; }

Property Value

string

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

string

The question to ask.

simpleDocument

SimpleTextDocument

The document to use as context for the question.

Returns

string

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

SimpleTextDocument

The document to summarize.

Returns

string

A summary string generated by the provider.