TelerikToolCall
Displays a tool or function invocation, its current state, and optional details.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikToolCall : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikToolCall
Implements:
Inherited Members
Constructors
public TelerikToolCall()
Properties
Custom template for the approval block content. Replaces the default approval card.
[Parameter]
public RenderFragment? ApprovalTemplate { get; set; }
Approval explanation shown in the default approval card when State is AwaitingApproval.
[Parameter]
public string? ApprovalText { get; set; }
Custom template for the error message box element. Replaces the default error rendering.
[Parameter]
public RenderFragment? ErrorTemplate { get; set; }
Whether the step head exposes disclosure behaviour.
[Parameter]
public bool Expandable { get; set; }
Whether the tool details body is visible.
[Parameter]
public bool Expanded { get; set; }
Fires when the user toggles the expanded state.
[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }
The icon displayed in the step head. Defaults to .
[Parameter]
public object? Icon { get; set; }
Tool or function name displayed in the step head.
[Parameter]
public string? Label { get; set; }
Fires when the user clicks the Approve or Reject button.
[Parameter]
public EventCallback<ToolCallAction> OnAction { get; set; }
Raw tool input data. Rendered as formatted JSON by default.
[Parameter]
public object? Parameters { get; set; }
Custom template for the parameters block content. Replaces the default formatted JSON rendering.
[Parameter]
public RenderFragment? ParametersTemplate { get; set; }
Raw tool result data. Rendered as formatted JSON by default.
[Parameter]
public object? Result { get; set; }
Custom template for the result block content. Replaces the default formatted JSON rendering.
[Parameter]
public RenderFragment? ResultTemplate { get; set; }
Optional secondary text shown in the step head (file, command, or target context).
[Parameter]
public string? SecondaryLabel { get; set; }
Semantic lifecycle state of the tool call. Defaults to Active.
[Parameter]
public ToolCallState State { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides: