setState

Sets a new state for the tool call, re-renders the header badge and body content, and resets expanded to false.

Parameters

state String

The new state. Valid values are "active", "completed", "awaitingApproval", and "error".

Example - set the state to completed

<div id="toolcall"></div>
<script>
$("#toolcall").kendoToolCall({
    label: "run_query",
    state: "active"
});
var toolCall = $("#toolcall").data("kendoToolCall");
toolCall.setState("completed");
</script>
In this article
setState
Not finding the help you need?
Contact Support