New to Telerik UI for BlazorStart a free 30-day trial

Displays a tool or function invocation, its current state, and optional details.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class TelerikToolCall : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikToolCall

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikToolCall()

Properties

Custom template for the approval block content. Replaces the default approval card.

C#
[Parameter]
public RenderFragment? ApprovalTemplate { get; set; }

Approval explanation shown in the default approval card when State is AwaitingApproval.

C#
[Parameter]
public string? ApprovalText { get; set; }

Custom template for the error message box element. Replaces the default error rendering.

C#
[Parameter]
public RenderFragment? ErrorTemplate { get; set; }

Error message shown when State is Error.

C#
[Parameter]
public string? ErrorText { get; set; }

Whether the step head exposes disclosure behaviour.

C#
[Parameter]
public bool Expandable { get; set; }

Whether the tool details body is visible.

C#
[Parameter]
public bool Expanded { get; set; }

Fires when the user toggles the expanded state.

C#
[Parameter]
public EventCallback<bool> ExpandedChanged { get; set; }

The icon displayed in the step head. Defaults to .

C#
[Parameter]
public object? Icon { get; set; }

Tool or function name displayed in the step head.

C#
[Parameter]
public string? Label { get; set; }

Fires when the user clicks the Approve or Reject button.

C#
[Parameter]
public EventCallback<ToolCallAction> OnAction { get; set; }

Raw tool input data. Rendered as formatted JSON by default.

C#
[Parameter]
public object? Parameters { get; set; }

Custom template for the parameters block content. Replaces the default formatted JSON rendering.

C#
[Parameter]
public RenderFragment? ParametersTemplate { get; set; }

Raw tool result data. Rendered as formatted JSON by default.

C#
[Parameter]
public object? Result { get; set; }

Custom template for the result block content. Replaces the default formatted JSON rendering.

C#
[Parameter]
public RenderFragment? ResultTemplate { get; set; }

Optional secondary text shown in the step head (file, command, or target context).

C#
[Parameter]
public string? SecondaryLabel { get; set; }

Semantic lifecycle state of the tool call. Defaults to Active.

C#
[Parameter]
public ToolCallState State { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)