updatePromptOutputContent

Updates the content of a specific prompt output or the most recent output. This method is typically used during streaming operations to update content in real-time.

Parameters

content String

The new content to display.

outputIdOrElement String|Object (optional)

The output ID (string) or output element/object to update. If not provided, updates the most recent output.

Example

<div id="aiprompt"></div>
<script>
var aiprompt = $("#aiprompt").kendoAIPrompt().data("kendoAIPrompt");

// Update most recent output
aiprompt.updatePromptOutputContent("Updated content");

// Update specific output by ID
aiprompt.updatePromptOutputContent("Updated content", "output-id-123");
</script>
In this article
updatePromptOutputContent
Not finding the help you need?
Contact Support