AIPromptComponent
Represents the Kendo UI AIPrompt component for Angular.
<kendo-aiprompt
[promptCommands]="commands"
[promptSuggestions]="suggestions"
[promptOutputs]="outputs"
[showOutputRating]="true"
(promptRequest)="onPromptRequest($event)">
</kendo-aiprompt>
Selector
kendo-aiprompt
Export Name
Accessible in templates as #kendoAIPromptInstance="kendoAIPrompt"
Inputs
Name | Type | Default | Description |
---|---|---|---|
activeView |
|
The active view index of the AIPrompt component. | |
disabledGenerateButton |
|
|
Sets the disabled state for the Generate button in the Prompt view. |
generateButtonIcon |
|
|
Sets the icon for the Generate button in the Prompt view. |
generateButtonSVGIcon |
|
Sets the SVG icon for the Generate button in the Prompt view. | |
promptCommands |
|
Sets the collection of commands to render in the Command view. | |
promptOutputs |
|
Sets the collection of generated prompt outputs to render in the Output view. | |
promptSuggestions |
|
Sets the collection of suggestions to render in the Prompt view. | |
showOutputRating |
|
|
Specifies whether the rating buttons appear in each Output view card. The rating buttons do not appear by default. |
speechToTextButton |
|
Sets the settings for the Speech to Text button in the Prompt view. | |
streaming |
|
|
Specifies whether the Stop generation button appears in the Output view. The Stop generation button does not appear by default. |
textAreaSettings |
|
Sets the settings for the TextArea in the Prompt view. Use this property to customize the TextArea appearance. |
Events
Name | Type | Description |
---|---|---|
activeViewChange |
|
Fires when the |
commandExecute |
|
Fires when you click a Command view command. The event data contains the selected command. |
outputCopy |
|
Fires when you click a Copy button in any Output view card. |
outputRatingChange |
|
Fires when you click a rating button in any Output view card. |
promptRequest |
|
Fires when you click the Generate button in the Prompt view or the Retry button in the Output view.
Use the event's |
promptRequestCancel |
|
Fires when you click the Stop Generation button in the Output view. |
Methods
focus |
---|
Focuses the first focusable element in the AIPrompt component. |