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

Definition

Namespace:Telerik.Blazor.Components.Common.AIPrompt

Assembly:Telerik.Blazor.dll

Syntax:

C#
public abstract class AIPromptBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentAIPromptBase

Derived Classes: TelerikAIPromptTelerikInlineAIPrompt

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.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.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
protected AIPromptBase()

Methods

C#
protected override Task OnInitializedAsync()
Returns:

Task

Overrides: BaseComponent.OnInitializedAsync()

Properties

Called when the users send a Prompt Request.

C#
[Parameter]
public EventCallback OnPromptRequestStop { get; set; }

The value of the text field and the prompt that is sent to the AI service.

C#
[Parameter]
public string Prompt { get; set; }

Called when the users changes the prompt text.

C#
[Parameter]
public EventCallback<string> PromptChanged { get; set; }

Defines the additional context that is passed with the prompt.

C#
[Parameter]
public string PromptContext { get; set; }

The placeholder for the prompt input.

C#
[Parameter]
public string PromptPlaceholder { get; set; }

Defines the system prompt that is passed to the , when such is used.

C#
[Parameter]
public string SystemPrompt { get; set; }