SpreadsheetAIModel
View model for managing AI-powered chat messages for a spreadsheet. Handles the chat loop, message processing, and thread marshaling.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadSpreadsheet.dll
Syntax:
public class SpreadsheetAIModel : ViewModelBase, INotifyPropertyChanged, IDisposable
Inheritance: objectViewModelBaseSpreadsheetAIModel
Implements:
Inherited Members
Constructors
Initializes a new instance of the SpreadsheetAIModel class.
public SpreadsheetAIModel(RadSpreadsheet spreadsheet)
The RadSpreadsheet instance to interact with.
Properties
Gets or sets the current author for the next message.
public Author CurrentAuthor { get; set; }
Messages
IReadOnlyList<MessageModel>
Gets the collection of messages in the chat.
public IReadOnlyList<MessageModel> Messages { get; }
Gets or sets the watermark content displayed in the chat input box.
public string NullText { get; set; }
Gets or sets a value indicating whether the typing indicator should be displayed.
public bool ShowTypingIndicator { get; set; }
Methods
Cancels the current prompt request.
public void CancelCurrentRequest()
Releases managed resources.
protected override void Dispose(bool disposing)
True to release managed resources.
Overrides:
Sends a message from the user.