InlineAIPrompt

Example

Razor
<kendo-inlineaiprompt>
    <commands></commands>
    <messages />
    <output-actions></output-actions>
    <popup></popup>
    <service />
    <speech-to-text />
</kendo-inlineaiprompt>

ChildTags

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
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.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
enableBooleanSpecifies whether the underlying TextArea widget will be disabled or not.
encoded-prompt-outputsBooleanSpecifies whether the prompt outputs are HTML-encoded before being displayed in the output view. When set to true (default), the output is encoded and displayed as plain text, preventing any HTML formatting or scripts from being rendered.
is-streamingBooleanSets the widget in a streaming mode.
on-command-executeStringThe name of the JavaScript function that will handle the commandExecute event. Triggered once a command is selected.
on-hideStringThe name of the JavaScript function that will handle the hide event. Triggered once the component has been closed programmatically.
on-output-actionStringThe name of the JavaScript function that will handle the outputAction event. This event will be fired with the button options that will be received, after the command has finished. Currently, these would be the Copy, Retry, and Discard options.
on-prompt-requestStringThe name of the JavaScript function that will handle the promptRequest event. Triggered before a request has been initiated to the specified service.
on-prompt-request-cancelStringThe name of the JavaScript function that will handle the promptRequestCancel event. Triggered when a prompt request is cancelled, typically by clicking the stop generation button during streaming operations.
on-prompt-responseStringThe name of the JavaScript function that will handle the promptResponse event. Triggered once a response has been sent back from the specified service.
on-showStringThe name of the JavaScript function that will handle the show event. Triggered once the component has been opened programmatically.
placeholderStringSpecifies the placeholder text for the underlying TextArea widget.
readonlyBooleanSpecifies whether the underlying TextArea widget will be readonly or not.
response-templateStringA template function for customizing the display of output content. This function is called when an output's and final content needs to be rendered.The function receives an object with output (the output data) and prompt (the output prompt text) properties and should return HTML string.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
system-promptStringSets the systemPrompt's format which will be send to the specified AI Service. Exposes both a context and prompt metadata.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support