New to Telerik UI for WinFormsStart a free 30-day trial

Simplified model for managing AI-powered summaries and chat messages for a fixed document. Optimized for WinForms usage without complex binding patterns.

Definition

Namespace:Telerik.WinControls.UI.Converters

Assembly:Telerik.WinControls.PdfViewer.dll

Syntax:

C#
public class AISummaryModel

Inheritance: objectAISummaryModel

Constructors

Initializes a new instance of the AISummaryModel class.

C#
public AISummaryModel(RadFixedDocument document, ISummaryProvider summaryProvider)
Parameters:documentRadFixedDocument

The fixed document to summarize and ask questions about.

summaryProviderISummaryProvider

The summary provider to use for AI operations.

Properties

Gets the author representing the AI assistant.

C#
public Author AIAuthor { get; }

Gets the read-only collection of messages in the chat.

C#
public IReadOnlyList<ChatTextMessage> Messages { get; }

Gets or sets a value indicating whether the typing indicator should be displayed.

C#
public bool ShowTypingIndicator { get; set; }

Gets the summary provider used for generating summaries and answering questions.

C#
public ISummaryProvider SummaryProvider { get; }

Gets the author representing the user.

C#
public Author UserAuthor { get; }

Methods

Clears all messages from the conversation.

C#
public void ClearMessages()
C#
protected virtual void OnMessageAdded(MessageAddedEventArgs e)
Parameters:eMessageAddedEventArgs
C#
protected virtual void OnTypingIndicatorChanged()

Regenerates the AI response for a given message.

C#
public void RegenerateResponse(ChatTextMessage message)
Parameters:messageChatTextMessage

The message to regenerate response for.

Sends a user message and gets an AI response.

C#
public void SendUserMessage(string messageText)
Parameters:messageTextstring

The message text from the user.

Events

Occurs when a new message is added to the conversation.

C#
public event EventHandler<MessageAddedEventArgs> MessageAdded

Occurs when the typing indicator state changes.

C#
public event EventHandler TypingIndicatorChanged