ToolCallBuilder
Defines the fluent API for configuring the Kendo ToolCall for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class ToolCallBuilder : WidgetBuilderBase<ToolCall, ToolCallBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<ToolCall, ToolCallBuilder>ToolCallBuilder
Implements:
Inherited Members
Constructors
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: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 value)
The value that configures the approvaltemplate.
Returns:A text message displayed inside the approval card when state is "awaitingApproval".
public ToolCallBuilder ApprovalText(string value)
The value that configures the approvaltext.
Returns: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: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 value)
The value that configures the errortemplate.
Returns:An error message displayed when state is "error".
public ToolCallBuilder ErrorText(string value)
The value that configures the errortext.
Returns:Configures the client-side events.
public ToolCallBuilder Events(Action<ToolCallEventBuilder> configurator)
The client events action.
Returns:Enables toggling the visibility of the step body by clicking the header or using the keyboard.
public ToolCallBuilder Expandable(bool value)
The value that configures the expandable.
Returns:Controls whether the step body is visible when the widget initializes.
public ToolCallBuilder Expanded(bool value)
The value that configures the expanded.
Returns:The primary text label displayed in the step header.
public ToolCallBuilder Label(string value)
The value that configures the label.
Returns:Contains the localizable text strings used by the widget.
public ToolCallBuilder Messages(Action<ToolCallMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.
public ToolCallBuilder Parameters(object value)
The value that configures the parameters.
Returns: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: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 value)
The value that configures the parameterstemplate.
Returns:A plain JavaScript object rendered as formatted JSON in the step body under the result label.
public ToolCallBuilder Result(object value)
The value that configures the result.
Returns: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: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 value)
The value that configures the resulttemplate.
Returns:A secondary text label displayed after the separator in the step header.
public ToolCallBuilder SecondaryLabel(string value)
The value that configures the secondarylabel.
Returns:The current state of the tool call.
public ToolCallBuilder State(ToolCallState value)
The value that configures the state.
Returns:Overrides the default SVG icon used inside the state badge. When null, a built-in icon is chosen based on the current state.
public ToolCallBuilder StatusSVGIcon(string value)
The value that configures the statussvgicon.
Returns:The name of the SVG icon displayed in the step header.
public ToolCallBuilder SvgIcon(string value)
The value that configures the svgicon.
Returns: