AISummaryModel
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:
public class AISummaryModel
Inheritance: objectAISummaryModel
Constructors
Initializes a new instance of the AISummaryModel class.
public AISummaryModel(RadFixedDocument document, ISummaryProvider summaryProvider)
The fixed document to summarize and ask questions about.
summaryProviderISummaryProviderThe summary provider to use for AI operations.
Properties
Messages
IReadOnlyList<ChatTextMessage>
Gets the read-only collection of messages in the chat.
public IReadOnlyList<ChatTextMessage> Messages { get; }
Gets or sets a value indicating whether the typing indicator should be displayed.
public bool ShowTypingIndicator { get; set; }
Gets the summary provider used for generating summaries and answering questions.
public ISummaryProvider SummaryProvider { get; }
Gets the author representing the user.
public Author UserAuthor { get; }
Methods
Clears all messages from the conversation.
public void ClearMessages()
protected virtual void OnTypingIndicatorChanged()
Regenerates the AI response for a given message.
public void RegenerateResponse(ChatTextMessage message)
The message to regenerate response for.
Sends a user message and gets an AI response.
public void SendUserMessage(string messageText)
The message text from the user.
Events
Occurs when a new message is added to the conversation.
public event EventHandler<MessageAddedEventArgs> MessageAdded
Occurs when the typing indicator state changes.
public event EventHandler TypingIndicatorChanged