ClassTelerikInlineAIPrompt
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikInlineAIPrompt : AIPromptBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentAIPromptBaseTelerikInlineAIPrompt
Implements:
Inherited Members
Constructors
TelerikInlineAIPrompt()
Declaration
public TelerikInlineAIPrompt()
Properties
Commands
Defines the Commands of the component.
Declaration
[Parameter]
public List<InlineAIPromptCommandDescriptor> Commands { get; set; }
Property Value
EnableSpeechToText
Specifies whether to enable speech to text functionality.
Declaration
[Parameter]
public bool EnableSpeechToText { get; set; }
Property Value
InlineAIPromptSettings
Container to define settings.
Declaration
[Parameter]
public RenderFragment InlineAIPromptSettings { get; set; }
Property Value
OnCommandExecute
Event callback that is triggered when a command is executed. If not provided the component will try to execute the command using an service.
Declaration
[Parameter]
public EventCallback<InlineAIPromptCommandExecuteEventArgs> OnCommandExecute { get; set; }
Property Value
OnOutputActionClick
Event callback that is triggered when an output action is clicked.
Declaration
[Parameter]
public EventCallback<InlineAIPromptOutputActionClickEventArgs> OnOutputActionClick { get; set; }
Property Value
OnPromptRequest
Event callback that is triggered when a prompt request is made. If not provided the component will try to prmompt LLM using an service.
Declaration
[Parameter]
public EventCallback<InlineAIPromptPromptRequestEventArgs> OnPromptRequest { get; set; }
Property Value
OutputActions
Defines the output actions for each output.
Declaration
[Parameter]
public List<InlineAIPromptOutputActionDescriptor> OutputActions { get; set; }
Property Value
OutputTemplate
Defines how the output items are displayed in the inline prompt.
Declaration
[Parameter]
public RenderFragment<InlineAIPromptOutputItemTemplateContext> OutputTemplate { get; set; }
Property Value
Placeholder
Placeholder text for the input field.
Declaration
[Parameter]
public string Placeholder { get; set; }
Property Value
Methods
AppendOutput(string)
Appends output to the current output item in the inline prompt.
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
HideAsync()
Hides the inline prompt.
SetParametersAsync(ParameterView)
Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
parameters
Returns
Overrides
ShowAsync(double, double)
Shows the inline prompt at defined coordinates.