ClassTelerikAIPrompt
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikAIPrompt : AIPromptBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentAIPromptBaseTelerikAIPrompt
Implements:
Inherited Members
Constructors
TelerikAIPrompt()
Declaration
public TelerikAIPrompt()
Properties
AIPromptSettings
Defines the settings for the AI prompt component. Children: AIPromptSpeechToTextButtonSettings.
Declaration
[Parameter]
public RenderFragment AIPromptSettings { get; set; }
Property Value
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. Children: AIPromptToolBarButton, AIPromptToolBarSpacer, AIPromptToolBarTemplateItem.
Declaration
[Parameter]
public RenderFragment AIPromptToolBar { get; set; }
Property Value
AIPromptViews
The Views of the component. Children: AIPromptPromptView, AIPromptOutputView, AIPromptCommandView, AIPromptCustomView.
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
EnableSpeechToText
Specifies whether to enable speech to text functionality.
Declaration
[Parameter]
public bool EnableSpeechToText { get; set; }
Property Value
Height
Defines the height of the component.
OnCommandExecute
Declaration
[Parameter]
public EventCallback<AIPromptCommandExecuteEventArgs> OnCommandExecute { get; set; }
Property Value
OnOutputActionClick
Event callback that is triggered when an output action is clicked.
Declaration
[Parameter]
public EventCallback<AIPromptOutputActionClickEventArgs> OnOutputActionClick { get; set; }
Property Value
OnPromptRequest
Declaration
[Parameter]
public EventCallback<AIPromptPromptRequestEventArgs> OnPromptRequest { get; set; }
Property Value
OutputActions
Defines the output actions for each output.
Declaration
[Parameter]
public List<AIPromptOutputActionDescriptor> OutputActions { get; set; }
Property Value
OutputItemTemplate
Defines the Output Item Template of the component.
Declaration
[Parameter]
public RenderFragment<AIPromptOutputItemTemplateContext> OutputItemTemplate { 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.
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