Class RadAIPrompt
A component that bridges the gap between an app and the next-generation AI language model applications. Use the AIPrompt to provide your users with pre-determined ways to interact with a trained language model of your choice.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Data Controls")]
public class RadAIPrompt : RadControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadAIPrompt()
Properties
ActiveItem
Gets or sets the currently active item.
Declaration
public RadAIPromptItem ActiveItem { get; set; }
Property Value
RadAIPromptItem
|
AIPromptElement
DefaultSize
Gets the default size of the RadAIPrompt when a new instance is initialized.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
InputText
Gets or sets the input text.
Declaration
public string InputText { get; set; }
Property Value
System.String
|
Items
Gets the items that represent the different views of the AI Prompt control.
Declaration
public ObservableCollection<RadAIPromptItem> Items { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<RadAIPromptItem>
|
OutputItems
Gets the output items (the responses from the AI).
Declaration
public ObservableCollection<AIPromptOutputItem> OutputItems { get; }
Property Value
System.Collections.ObjectModel.ObservableCollection<AIPromptOutputItem>
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
ToolbarPosition
Gets or sets the position of the toolbar.
Declaration
public ToolbarPosition ToolbarPosition { get; set; }
Property Value
ToolbarPosition
|
Methods
CreateAiPromptElement()
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
Events
OutputItemAction
Event is raised when the user initiates an interaction with the output visual item.
Declaration
public event OutputItemActionEventHandler OutputItemAction
Event Type
OutputItemActionEventHandler
|
OutputVisualItemCreated
Event is raised when a new item is added to the OutputItems and a new visual item is about to be added to the AIPromptOutputView. The event is suitable to modify or replace the visual item.
Declaration
public event OutputVisualItemCreatedEventHandler OutputVisualItemCreated
Event Type
OutputVisualItemCreatedEventHandler
|
PromptRequest
Event is raised when the user initiates a prompt request.
Declaration
public event PromptRequestEventHandler PromptRequest
Event Type
PromptRequestEventHandler
|