ToolCallBuilder
Defines the fluent API for configuring the Kendo UI ToolCall
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolCallBuilder : WidgetBuilderBase<ToolCall, ToolCallBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<ToolCall, ToolCallBuilder>ToolCallBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the ToolCallBuilder class.
Methods
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 ToolCallBuilder ApprovalTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the approvaltemplate.
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ApprovalTemplateHandler(string templateHandler)
The handler that returs the template for ApprovalTemplate
Returns:Returns the current ToolCallBuilder instance.
A text message displayed inside the approval card when state is "awaitingApproval".
public ToolCallBuilder ApprovalText(string value)
The value for ApprovalText
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ErrorTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the errortemplate.
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ErrorTemplateHandler(string templateHandler)
The handler that returs the template for ErrorTemplate
Returns:Returns the current ToolCallBuilder instance.
An error message displayed when state is "error".
public ToolCallBuilder ErrorText(string value)
The value for ErrorText
Returns:Returns the current ToolCallBuilder instance.
Configures the client-side events.
public ToolCallBuilder Events(Action<ToolCallEventBuilder> configurator)
The client events action.
Returns:Returns the current ToolCallBuilder instance.
Enables toggling the visibility of the step body by clicking the header or using the keyboard.
Enables toggling the visibility of the step body by clicking the header or using the keyboard.
public ToolCallBuilder Expandable(bool value)
The value for Expandable
Returns:Returns the current ToolCallBuilder instance.
Controls whether the step body is visible when the widget initializes.
Controls whether the step body is visible when the widget initializes.
public ToolCallBuilder Expanded(bool value)
The value for Expanded
Returns:Returns the current ToolCallBuilder instance.
The primary text label displayed in the step header.
public ToolCallBuilder Label(string value)
The value for Label
Returns:Returns the current ToolCallBuilder instance.
Contains the localizable text strings used by the widget.
public ToolCallBuilder Messages(Action<ToolCallMessagesSettingsBuilder> configurator)
The ToolCallMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of ToolCallBuilder .
A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
public ToolCallBuilder Parameters(object value)
The value for Parameters
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ParametersTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the parameterstemplate.
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ParametersTemplateHandler(string templateHandler)
The handler that returs the template for ParametersTemplate
Returns:Returns the current ToolCallBuilder instance.
A plain JavaScript object rendered as formatted JSON in the step body under the result label.
public ToolCallBuilder Result(object value)
The value for Result
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ResultTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the resulttemplate.
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder ResultTemplateHandler(string templateHandler)
The handler that returs the template for ResultTemplate
Returns:Returns the current ToolCallBuilder instance.
A secondary text label displayed after the separator in the step header.
public ToolCallBuilder SecondaryLabel(string value)
The value for SecondaryLabel
Returns:Returns the current ToolCallBuilder instance.
The current state of the tool call.
public ToolCallBuilder State(ToolCallState value)
The value for State
Returns:Returns the current ToolCallBuilder instance.
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 ToolCallBuilder StatusSVGIcon(Action<ToolCallStatusSVGIconSettingsBuilder> configurator)
The ToolCallStatusSVGIconSettingsBuilder for the statussvgicon setting.
Returns:Returns the current instance of ToolCallBuilder .
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 ToolCallBuilder StatusSVGIcon(string statusSVGIcon)
The statussvgicon.
Returns:Returns the current instance of ToolCallBuilder .
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 ToolCallBuilder SvgIcon(Action<ToolCallSvgIconSettingsBuilder> configurator)
The ToolCallSvgIconSettingsBuilder for the svgicon setting.
Returns:Returns the current instance of ToolCallBuilder .
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 ToolCallBuilder SvgIcon(string svgIcon)
The svgicon.
Returns:Returns the current instance of ToolCallBuilder .