ClassAIPromptBase
Class
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:
Implements:
Inherited Members
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
Height
Defines the height of the component.
OnCommandExecute
Called when the user executes command.
Declaration
cs-api-definition
[Parameter]
public EventCallback<AIPromptCommandExecuteEventArgs> OnCommandExecute { get; set; }
Property Value
OnPromptRequest
Called when the users send a Prompt Request.
Declaration
cs-api-definition
[Parameter]
public EventCallback<AIPromptPromptRequestEventArgs> OnPromptRequest { get; set; }
Property Value
Prompt
Defins the prompt text of the component.
PromptChanged
Called when the users changes the prompt text.
Declaration
cs-api-definition
[Parameter]
public EventCallback<string> PromptChanged { get; set; }
Property Value
PromptContext
Defines the additional context that is passed with the prompt.
Declaration
cs-api-definition
[Parameter]
public string PromptContext { get; set; }
Property Value
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
Methods
InternalHandleRequest(AIPromptPromptRequestEventArgs)
Declaration
cs-api-definition
protected Task<string> InternalHandleRequest(AIPromptPromptRequestEventArgs args)
Parameters
args
Returns