New to Telerik UI for BlazorStart a free 30-day trial

Configuration settings for AI Prompt integration in the Editor component. Controls AI-powered content generation, editing assistance, and available AI commands. Use within EditorSettings to customize AI functionality.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class EditorAIPromptSettings : EditorAIPromptSettingsBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentEditorAIPromptSettingsBaseEditorAIPromptSettings

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members EditorAIPromptSettingsBase.SystemPromptBaseComponent.ShouldRender()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)...

Constructors

C#
public EditorAIPromptSettings()

Properties

Defines the available AI commands that users can execute within the AI Prompt interface. Use predefined commands from EditorDefaultAIPromptCommands or create custom commands. Commands define AI actions like "Summarize", "Expand", "Rewrite", or application-specific operations. Each command includes prompts, icons, and behaviors for different AI-powered content operations. Default value includes standard editing commands like summarize, expand, and improve text.

C#
[Parameter]
public List<AIPromptCommandDescriptor> Commands { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override Task OnInitializedAsync()
Returns:

Task

Overrides: BaseComponent.OnInitializedAsync()

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: ComponentBase.OnParametersSetAsync()

C#
public override Task SetParametersAsync(ParameterView parameters)
Parameters:parametersParameterViewReturns:

Task

Overrides: ComponentBase.SetParametersAsync(ParameterView)