ToolCall
Kendo UI ToolCall component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolCall : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseToolCall
Implements:
Inherited Members
Constructors
Initializes a new instance of the ToolCall class.
Properties
A 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.
public string ApprovalTemplateHandler { get; set; }
A text message displayed inside the approval card when state is "awaitingApproval".
public string ApprovalText { get; set; }
A 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.
public string ErrorTemplateHandler { get; set; }
An error message displayed when state is "error".
public string ErrorText { get; set; }
Enables toggling the visibility of the step body by clicking the header or using the keyboard.
public bool? Expandable { get; set; }
Controls whether the step body is visible when the widget initializes.
public bool? Expanded { get; set; }
The primary text label displayed in the step header.
public string Label { get; set; }
Contains the localizable text strings used by the widget.
public ToolCallMessagesSettings Messages { get; }
A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
public object Parameters { get; set; }
A function used to render the parameters section body. Receives the widget options object as the first argument and must return an HTML string.
public string ParametersTemplateHandler { get; set; }
A plain JavaScript object rendered as formatted JSON in the step body under the result label.
public object Result { get; set; }
A function used to render the result section body. Receives the widget options object as the first argument and must return an HTML string.
public string ResultTemplateHandler { get; set; }
A secondary text label displayed after the separator in the step header.
public string SecondaryLabel { get; set; }
The current state of the tool call.
public ToolCallState? State { get; set; }
public string StatusSVGIcon { get; set; }
Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ToolCallStatusSVGIconSettings StatusSVGIconSettings { get; }
The name of the SVG icon displayed in the step header.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.
public ToolCallSvgIconSettings SvgIconSettings { get; }
Methods
Serialize the current instance to Dictionary
public override IDictionary<string, object> Serialize()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: