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. | |
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 if the rating buttons appear in each Output view card. By default, the rating buttons do not appear. |
Events
Name | Type | Description |
---|---|---|
activeViewChange |
|
Fires when the |
commandExecute |
|
Fires when the user clicks a Command view command. The event data contains the selected command. |
outputCopy |
|
Fires when the user clicks a Copy button in any Output view card. |
outputRatingChange |
|
Fires when the user clicks a rating button in any Output view card. |
promptRequest |
|
Fires when the user clicks the Generate button in the Prompt view or the Retry button in the Output view.
Use the event's |
Methods
focus |
---|
Focuses the first focusable element in the AIPrompt component. |