Class
AIPromptBase

Definition

Namespace:Telerik.Blazor.Components.AIPrompt

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public abstract class AIPromptBase : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentAIPromptBase

Derived Classes: InlineAIPromptTelerikAIPrompt

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.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

AIPromptBase()

Declaration

cs-api-definition
protected AIPromptBase()

Properties

Commands

Defines the Commands of the component.

Declaration

cs-api-definition
[Parameter]
public List<AIPromptCommandDescriptor> Commands { get; set; }

Property Value

List<AIPromptCommandDescriptor>

Height

Defines the height of the component.

Declaration

cs-api-definition
[Parameter]
public string Height { get; set; }

Property Value

string

OnCommandExecute

Called when the user executes command.

Declaration

cs-api-definition
[Parameter]
public EventCallback<AIPromptCommandExecuteEventArgs> OnCommandExecute { get; set; }

Property Value

EventCallback<AIPromptCommandExecuteEventArgs>

OnPromptRequest

Called when the users send a Prompt Request.

Declaration

cs-api-definition
[Parameter]
public EventCallback<AIPromptPromptRequestEventArgs> OnPromptRequest { get; set; }

Property Value

EventCallback<AIPromptPromptRequestEventArgs>

Prompt

Defins the prompt text of the component.

Declaration

cs-api-definition
[Parameter]
public string Prompt { get; set; }

Property Value

string

PromptChanged

Called when the users changes the prompt text.

Declaration

cs-api-definition
[Parameter]
public EventCallback<string> PromptChanged { get; set; }

Property Value

EventCallback<string>

PromptContext

Defines the additional context that is passed with the prompt.

Declaration

cs-api-definition
[Parameter]
public string PromptContext { get; set; }

Property Value

string

SystemPrompt

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

Declaration

cs-api-definition
[Parameter]
public string SystemPrompt { get; set; }

Property Value

string

Width

Defines the width of the component.

Declaration

cs-api-definition
[Parameter]
public string Width { get; set; }

Property Value

string

Methods

InternalHandleRequest(AIPromptPromptRequestEventArgs)

Declaration

cs-api-definition
protected Task<string> InternalHandleRequest(AIPromptPromptRequestEventArgs args)

Parameters

args

AIPromptPromptRequestEventArgs

Returns

Task<string>

OnInitializedAsync()

Declaration

cs-api-definition
protected override Task OnInitializedAsync()

Returns

Task

Overrides BaseComponent.OnInitializedAsync()