BlazorAgentView 1.1.0

dotnet add package BlazorAgentView --version 1.1.0
                    
NuGet\Install-Package BlazorAgentView -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorAgentView" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorAgentView" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="BlazorAgentView" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorAgentView --version 1.1.0
                    
#r "nuget: BlazorAgentView, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlazorAgentView@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorAgentView&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=BlazorAgentView&version=1.1.0
                    
Install as a Cake Tool

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.

NuGet License: MIT .NET 10

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 RenderFragment content
  • 🖼️ Custom tool renderersRenderFragment<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 iconsToolCall.Icon (RenderFragment?) renders a custom SVG/HTML icon on the right side of the tool card header as a visual type indicator.
  • Subtitle on ToolCall — optional secondary text displayed next to the tool name for at-a-glance summaries (file path, search query, etc.).
  • ShowSystemPromptBanner option — hide the system-prompt banner independently via AgentChatOptions.ShowSystemPromptBanner = false.
  • Per-tool DisplayMode override — each ToolCall can now override the global AgentChatOptions.ToolCallDisplay.

1.0.0

  • Initial release: <AgentChatView> component, tool call cards, Markdown rendering, streaming, dark mode, CSS variable theming, virtualisation.
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
1.1.0 213 5/5/2026
1.0.0 108 4/30/2026