New to Telerik UI for Blazor? Start a free 30-day trial
Blazor LLM Kit Reasoning
Updated on Aug 13, 2026
The Reasoning component renders a collapsible block that exposes the agent's raw thinking process — its inner monologue or scratchpad content. Use the component to give users visibility into how the agent approaches a problem before it takes action.
Content inside the Reasoning block streams in progressively as the agent thinks, and the block can be marked as completed once the reasoning phase finishes.
Creating Blazor Reasoning
To use the Reasoning component:
- Add the
<TelerikReasoning>tag. - Set
Labelto a string such as"Thinking"or"Thought". - Define a
<ContentTemplate>child template with the agent's reasoning text. - (optional) Set
ExpandableandExpandedto control collapsibility. - (optional) Set
Completedto mark the reasoning phase as finished. - (optional) Set
SecondaryLabelto display metadata such as duration.
Completed Reasoning block showing agent scratchpad content
<TelerikReasoning Label="Thought"
SecondaryLabel="for 5s"
Expandable="true"
@bind-Expanded="@IsExpanded"
Completed="true">
<ContentTemplate>
<p>I need to sum revenue per customer for Q1 2025 and return the top 5 results ordered descending.</p>
<p>I'll use query_database with a GROUP BY on customer_name and limit to 5 results.</p>
</ContentTemplate>
</TelerikReasoning>
@code {
private bool IsExpanded { get; set; } = true;
}
Reasoning API
Get familiar with all Reasoning parameters, templates, and events in the Reasoning API Reference.