New to Telerik UI for Blazor? Start a free 30-day trial
Blazor LLM Kit ChainOfThought
Updated on Aug 13, 2026
The ChainOfThought component renders a sequential list of agent execution steps. Each step can include an icon, label text, optional chip tags, and a visual connector to the next step. Use the component to show how the agent searches for tools, evaluates options, and plans its next action.
The component accepts a strongly typed data collection through the Data parameter and uses a ItemTemplate to control how each step renders.
Creating Blazor ChainOfThought
To use the ChainOfThought component:
- Add the
<TelerikChainOfThought>tag. - Set the
Dataparameter to aList<TItem>. - Define a
<ItemTemplate>with aContextparameter to render each step. - (optional) Set
LabelandSecondaryLabelfor the header text. - (optional) Set
ExpandableandExpandedto control collapsibility. - (optional) Set
Completedto mark the block as finished.
ChainOfThought showing agent tool discovery steps
<TelerikChainOfThought Data="@Steps"
Label="Thinking through request"
Expandable="true"
@bind-Expanded="@IsExpanded"
Completed="@IsComplete">
<ItemTemplate Context="step">
<div style="display: flex; align-items: flex-start; gap: 8px; padding: 2px 0;">
<span>@step.Text</span>
</div>
</ItemTemplate>
</TelerikChainOfThought>
@code {
private bool IsExpanded { get; set; } = true;
private bool IsComplete { get; set; }
private List<ResearchStep> Steps { get; set; } = new()
{
new ResearchStep { Text = "Searched for analytics tools" },
new ResearchStep { Text = "Found query_database — supports GROUP BY, date filters, and aggregation" },
new ResearchStep { Text = "Searching for related work..." }
};
protected override async Task OnAfterRenderAsync(bool firstRender)
{
if (firstRender)
{
await Task.Delay(2000);
Steps.Add(new ResearchStep { Text = "Found 3 related queries — revenue by month, top customers by order value, and invoice reconciliation report" });
IsComplete = true;
StateHasChanged();
}
}
public class ResearchStep
{
public string Text { get; set; } = string.Empty;
}
}
ChainOfThought API
Get familiar with all ChainOfThought parameters, templates, and events in the ChainOfThought API Reference.