BlazorAgentView 1.1.0
dotnet add package BlazorAgentView --version 1.1.0
NuGet\Install-Package BlazorAgentView -Version 1.1.0
<PackageReference Include="BlazorAgentView" Version="1.1.0" />
<PackageVersion Include="BlazorAgentView" Version="1.1.0" />
<PackageReference Include="BlazorAgentView" />
paket add BlazorAgentView --version 1.1.0
#r "nuget: BlazorAgentView, 1.1.0"
#:package BlazorAgentView@1.1.0
#addin nuget:?package=BlazorAgentView&version=1.1.0
#tool nuget:?package=BlazorAgentView&version=1.1.0
BlazorAgentView
A Blazor component library for rendering AI agent chat interfaces with first-class tool call visualisation, Markdown support, streaming, dark mode, and full per-message customisation — all in a single <AgentChatView> component.
Full documentation and source: github.com/FelixKlakow/BlazorAgentView
Features
- 💬 Chat bubbles — user bubbles, borderless agent messages, collapsible system-prompt banner
- 🔧 Tool call cards — 4 display modes, cancel button, animated state icons, custom type icons
- 🏷️ Tool subtitles — optional secondary text beside the tool name
- ✍️ Markdown — Markdig pipeline, swappable via
IMarkdownRenderer - 📡 Streaming — animated typing indicator, incremental token append
- 🌙 Dark mode — built-in dark theme + full CSS variable theming
- 🏷️ Per-message customisation — custom labels, timestamps, and
RenderFragmentcontent - 🖼️ Custom tool renderers —
RenderFragment<ToolCall>for any tool type - 🔍 Virtualisation — opt-in for long chat histories
Quick Start
1 — Install
dotnet add package BlazorAgentView
2 — Add the stylesheet
<link rel="stylesheet" href="_content/BlazorAgentView/blazor-agent-view.css" />
3 — Add the using
@using BlazorAgentView.Components
@using BlazorAgentView.Models
4 — Drop in the component
@code {
private List<ChatMessage> _messages = new()
{
new ChatMessage { Role = MessageRole.User, Content = "Hello!" },
new ChatMessage { Role = MessageRole.Assistant, Content = "Hi! How can I help?" }
};
}
<div style="height: 600px;">
<AgentChatView Messages="_messages" />
</div>
⚠️ The component fills 100% of its parent's height. Always give the parent an explicit height.
Tool call type icons
Each ToolCall can carry an optional RenderFragment? Icon that is shown on the right side of the card header as a visual type indicator:
new ToolCall
{
ToolName = "read_file",
Subtitle = "src/Program.cs",
State = ToolState.Success,
Icon = @<svg viewBox="0 0 16 16" width="14" height="14" fill="currentColor">
<path d="M4 1h6l4 4v10H4V1zm6 0v4h4" stroke="currentColor" stroke-width="1.2" fill="none" stroke-linejoin="round" />
</svg>
}
Changelog
1.1.0
- Custom tool type icons —
ToolCall.Icon(RenderFragment?) renders a custom SVG/HTML icon on the right side of the tool card header as a visual type indicator. SubtitleonToolCall— optional secondary text displayed next to the tool name for at-a-glance summaries (file path, search query, etc.).ShowSystemPromptBanneroption — hide the system-prompt banner independently viaAgentChatOptions.ShowSystemPromptBanner = false.- Per-tool
DisplayModeoverride — eachToolCallcan now override the globalAgentChatOptions.ToolCallDisplay.
1.0.0
- Initial release:
<AgentChatView>component, tool call cards, Markdown rendering, streaming, dark mode, CSS variable theming, virtualisation.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Markdig (>= 0.40.0)
- Microsoft.AspNetCore.Components.Web (>= 10.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BlazorAgentView:
| Package | Downloads |
|---|---|
|
BlazorAgentView.SignalR
SignalR integration for BlazorAgentView � hub constants and helpers for streaming AI agent messages over a real-time SignalR connection. |
GitHub repositories
This package is not used by any popular GitHub repositories.