ToolCall

Example

Razor
<kendo-toolcall>
    <approval-template></approval-template>
    <error-template></error-template>
    <messages />
    <parameters-template></parameters-template>
    <result-template></result-template>
</kendo-toolcall>

ChildTags

Tag NameDetails
approval-templateTemplateTagHelper
error-templateTemplateTagHelper
messagesToolCallMessagesSettingsTagHelper
parameters-templateTemplateTagHelper
result-templateTemplateTagHelper

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.
approval-template-handlerStringA function used to render the entire approval section when state is "awaitingApproval". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in approve and reject buttons are not rendered. This option expects the name of a JavaScript function that will be called to return the template.
error-template-handlerStringA function used to render the entire error section when state is "error". Receives the widget options object as the first argument and must return an HTML string. When set, the built-in error message box is not rendered. This option expects the name of a JavaScript function that will be called to return the template.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
approval-textStringA text message displayed inside the approval card when state is "awaitingApproval".
error-textStringAn error message displayed when state is "error".
expandableBooleanEnables toggling the visibility of the step body by clicking the header or using the keyboard.
expandedBooleanControls whether the step body is visible when the widget initializes.
labelStringThe primary text label displayed in the step header.
on-actionStringThe name of the JavaScript function that will handle the action event. Fired when the user clicks the approve or reject button in the approval UI. Only fires when state is "awaitingApproval".The event handler function context (available via the this keyword) will be set to the widget instance.
on-expanded-changeStringThe name of the JavaScript function that will handle the expandedChange event. Fired when the user clicks the header to toggle the expanded state. Calling e.preventDefault() prevents the toggle from taking effect.The event handler function context (available via the this keyword) will be set to the widget instance.
parametersObjectA plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
parameters-template-handlerStringA function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string. This option expects the name of a JavaScript function that will be called to return the template.
resultObjectA plain JavaScript object rendered as formatted JSON in the step body under the result label.
result-template-handlerStringA function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string. This option expects the name of a JavaScript function that will be called to return the template.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
secondary-labelStringA secondary text label displayed after the separator in the step header.
stateToolCallStateThe current state of the tool call.
status-svg-iconStringOverrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.
svg-iconStringThe name of the SVG icon displayed in the step header.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support