commands.promptFunction

The prompt that will be composed for the command.

Example

<div id="inlineaiprompt"></div>
<script>
$("#inlineaiprompt").kendoInlineAIPrompt({
    commands: [{
        id: "summarize",
        text: "Summarize",
        icon: "file-text",
        prompt: (context) => `Please summarize the following text: ${context.selectedText}`
    }]
});
</script>
In this article
commands.prompt
Not finding the help you need?
Contact Support