ClassAISummaryModel
View model for managing AI-powered summaries and chat messages for a fixed document.
Definition
Namespace:Telerik.Windows.Controls.FixedDocumentViewersUI.Panels.ViewModels
Assembly:Telerik.Windows.Controls.FixedDocumentViewersUI.dll
Syntax:
public class AISummaryModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseAISummaryModel
Implements:
Inherited Members
Constructors
AISummaryModel(RadFixedDocument, ISummaryProvider)
Initializes a new instance of the AISummaryModel class.
Declaration
public AISummaryModel(RadFixedDocument document, ISummaryProvider summaryProvider)
Parameters
document
RadFixedDocument
The fixed document to summarize and ask questions about.
summaryProvider
The summary provider to use for AI operations.
Properties
CurrentAuthor
Gets the current author (AI or user) for the next message.
Messages
Gets the collection of messages in the chat.
Declaration
public ObservableCollection<MessageModel> Messages { get; set; }
Property Value
SendMessageCommand
Gets the command used to send a message.
Declaration
public DelegateCommand SendMessageCommand { get; }
Property Value
ShowTypingIndicator
Gets or sets a value indicating whether the typing indicator should be displayed.
SummaryProvider
Gets the summary provider used for generating summaries and answering questions.
Declaration
public ISummaryProvider SummaryProvider { get; }
Property Value