AIPromptTagHelper

Example

Razor
<kendo-aiprompt>
    <aiprompt-views></aiprompt-views>
    <messages />
    <prompt-outputs></prompt-outputs>
    <service />
    <toolbar-items></toolbar-items>
</kendo-aiprompt>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
active-viewObjectSpecifies the index of the active view or the name of the view.
as-moduleBoolean
has-client-componentBoolean
on-command-executeStringTriggered when a command item from the Commands view is clicked. The panel bar dataItem of the selected item is available through the event argument.
on-output-copyStringTriggered when the copy output button of an output is clicked. The prompt and the output object are available through the event argument.
on-output-rating-changeStringTriggered when the rating of an output is changed through the rate buttons of an output. The output id and the new rating are available through the event argument.
on-prompt-requestStringTriggered when the prompt view Generate output button is clicked. The prompt text is available through the event argument. Suitable to make a request to the AI service to receive an output. Use the addPromptOutput method to add the generated output to the promptOutputs collection.The prompt, output, history and isRetry properties are available in the event argument. When the output is generated after clicking the retry button of an output, the isRetry property is true and the output property is the output content of the output card. The history property is an array of prompt outputs generated before the current output.
on-prompt-responseStringTriggered when the AI service response is received. The response object is available through the event argument. Triggered only when the serviceUrl option is set.The output property is availble in the event argument.
prompt-suggestion-item-templateStringThe template of the prompt suggestion item. It can be a string, a function or a Kendo Template.
prompt-suggestion-item-template-handlerStringThe template of the prompt suggestion item. It can be a string, a function or a Kendo Template.
prompt-suggestion-item-template-idStringThe template of the prompt suggestion item. It can be a string, a function or a Kendo Template.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
prompt-suggestion-item-template-viewIHtmlContentThe template of the prompt suggestion item. It can be a string, a function or a Kendo Template.
prompt-suggestionsICollection<String>An array of prompt suggestions as strings to display in the prompt view. The suggestions can be clicked to populate the prompt input.
sanitize-idBoolean
script-attributesIDictionary<String,Object>
show-output-ratingBooleanSpecifies if the output rating should be displayed on the output card.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support