ClassTelerikAIPrompt
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikAIPrompt : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikAIPrompt
Implements:
Inherited Members
Constructors
TelerikAIPrompt()
Declaration
public TelerikAIPrompt()
Properties
AIPromptToolBar
Additional action buttons for the toolbar. These won't replace the buttons you got for the views. AIPromptToolBarButton, AIPromptToolBarSpacer and AIPromptToolBarTemplateItem items are supported.
Declaration
[Parameter]
public RenderFragment AIPromptToolBar { get; set; }
Property Value
AIPromptViews
The Views of the component.
Declaration
[Parameter]
public RenderFragment AIPromptViews { get; set; }
Property Value
Commands
Defines the Commands of the component.
Declaration
[Parameter]
public List<AIPromptCommandDescriptor> Commands { get; set; }
Property Value
Height
Defines the height of the component.
OnCommandExecute
Called when the user executes command.
Declaration
[Parameter]
public EventCallback<AIPromptCommandExecuteEventArgs> OnCommandExecute { get; set; }
Property Value
OnOutputRate
Called when the users rate an output.
Declaration
[Parameter]
public EventCallback<AIPromptOutputRateEventArgs> OnOutputRate { get; set; }
Property Value
OnPromptRequest
Called when the users send a Prompt Request.
Declaration
[Parameter]
public EventCallback<AIPromptPromptRequestEventArgs> OnPromptRequest { get; set; }
Property Value
OutputItemTemplate
Defines the Output Item Template of the component.
Declaration
[Parameter]
public RenderFragment<AIPromptOutputItemTemplateContext> OutputItemTemplate { get; set; }
Property Value
Prompt
Defins the prompt text of the component.
PromptChanged
Called when the users changes the prompt text.
Declaration
[Parameter]
public EventCallback<string> PromptChanged { get; set; }
Property Value
PromptSuggestionItemTemplate
Defines the Prompt Suggestion Item template of the component.
Declaration
[Parameter]
public RenderFragment<AIPromptSuggestionItemTemplateContext> PromptSuggestionItemTemplate { get; set; }
Property Value
PromptSuggestions
Defines the Prompt Suggestions of the component.
ShowOutputRating
Defins whether to show or hide rating buttons in the output card.
Declaration
[Parameter]
public bool ShowOutputRating { get; set; }
Property Value
Methods
AddItem(IAIPromptToolBarItem)
Declaration
public void AddItem(IAIPromptToolBarItem item)
Parameters
item
IAIPromptToolBarItem
AddOutput(string, string, string, string, string, bool)
Add new Output item to the component.
AddView(AIPromptViewBase)
Declaration
public void AddView(AIPromptViewBase item)
Parameters
item
AIPromptViewBase
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides
RemoveItem(IAIPromptToolBarItem)
Declaration
public void RemoveItem(IAIPromptToolBarItem item)
Parameters
item
IAIPromptToolBarItem
RemoveView(AIPromptViewBase)
Declaration
public void RemoveView(AIPromptViewBase item)
Parameters
item
AIPromptViewBase
SetActiveView(AIPromptViewBase, bool)
Declaration
protected void SetActiveView(AIPromptViewBase view, bool forceFocus = true)
Parameters
view
AIPromptViewBase
forceFocus
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides