New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Kendo UI ToolCall component

Definition

Constructors

Initializes a new instance of the ToolCall class.

C#
public ToolCall(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

The handler for the ApprovalTemplate

C#
public string ApprovalTemplateHandler { get; set; }

A text message displayed inside the approval card when state is "awaitingApproval".

C#
public string ApprovalText { get; set; }

The handler for the ErrorTemplate

C#
public string ErrorTemplateHandler { get; set; }

An error message displayed when state is "error".

C#
public string ErrorText { get; set; }

Enables toggling the visibility of the step body by clicking the header or using the keyboard.

C#
public bool? Expandable { get; set; }

Controls whether the step body is visible when the widget initializes.

C#
public bool? Expanded { get; set; }

The primary text label displayed in the step header.

C#
public string Label { get; set; }

Contains the localizable text strings used by the widget.

C#
public ToolCallMessagesSettings Messages { get; set; }

A plain JavaScript object rendered as formatted JSON in the step body under the parameters label.

C#
public object Parameters { get; set; }

The handler for the ParametersTemplate

C#
public string ParametersTemplateHandler { get; set; }

A plain JavaScript object rendered as formatted JSON in the step body under the result label.

C#
public object Result { get; set; }

The handler for the ResultTemplate

C#
public string ResultTemplateHandler { get; set; }

A secondary text label displayed after the separator in the step header.

C#
public string SecondaryLabel { get; set; }

The current state of the tool call.

C#
public ToolCallState? State { 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.

C#
public string StatusSVGIcon { get; set; }

The name of the SVG icon displayed in the step header.

C#
public string SvgIcon { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)