AgentBlazor 0.2.2
See the version list below for details.
dotnet add package AgentBlazor --version 0.2.2
NuGet\Install-Package AgentBlazor -Version 0.2.2
<PackageReference Include="AgentBlazor" Version="0.2.2" />
<PackageVersion Include="AgentBlazor" Version="0.2.2" />
<PackageReference Include="AgentBlazor" />
paket add AgentBlazor --version 0.2.2
#r "nuget: AgentBlazor, 0.2.2"
#:package AgentBlazor@0.2.2
#addin nuget:?package=AgentBlazor&version=0.2.2
#tool nuget:?package=AgentBlazor&version=0.2.2
AgentBlazor
Add an agent chat surface and deterministic app actions to a Blazor app.
Hosted demo:
Install:
dotnet add package AgentBlazor
If you prefer a pinned install, use:
dotnet add package AgentBlazor --version 0.2.2
Use 0.2.2 or later. This release includes the CLI v1 analyze package refresh, mobile chat input stability fix, corrected EF package shape, and tool-friendly schemas for date-like workflow parameters.
If dotnet still probes an old custom package source on your machine, remove or disable that source before testing the public NuGet install path.
Minimal setup:
using AgentBlazor;
using MudBlazor.Services;
builder.Services.AddMudServices();
builder.Services.AddAgentBlazor(options =>
{
options.UseOpenAI(
apiKey: builder.Configuration["OpenAI:ApiKey"]!,
model: builder.Configuration["OpenAI:Model"]!);
options.ConfigureBuilder(agentBuilder =>
{
agentBuilder.AddWorkflow<SupportInboxCapabilities>("support-inbox", agent =>
{
agent.WithRoutePrefixes("/support");
});
});
});
var app = builder.Build();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.MapAgentBlazorEndpoints();
AddAgentBlazor(...) alone does not create a responding agent. Register at least one workflow or agent inside options.ConfigureBuilder(...).
Mount AgentBlazorShell in an interactive layout or page. It wraps the AgentBlazor providers and includes the floating chat widget.
[AgentCapability("support_inbox")]
public sealed class SupportInboxCapabilities
{
[AgentAction("Show open tickets that still need a reply")]
public Task<CapabilityResult> ShowOpenTicketsAsync(int days = 7)
=> Task.FromResult(
CapabilityResult.Success($"Highlighted tickets from the last {days} days."));
[AgentAction("Draft a reply for the highlighted tickets", RequiresApproval = true)]
public Task<CapabilityResult> DraftReplyAsync()
=> Task.FromResult(
CapabilityResult.Success("Prepared the reply draft.")
.WithNextActions("Review the reply", "Approve the draft"));
}
@using AgentBlazor
@using AgentBlazor.Components
<AgentBlazorShell>
@Body
</AgentBlazorShell>
Docs and demo:
- Repository: https://github.com/ashpeterson/AgentBlazor
- Hosted demo: https://demo.agentblazor.com/demo/workflows/support-inbox
- Structured error reference: https://demo.agentblazor.com/demo/workflows/runtime-probe
- Quickstart: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/quickstart.md
- 0.2.2 release notes: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/releases/0.2.2.md
- 0.2.1 release notes: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/releases/0.2.1.md
- 0.2.0 release notes: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/releases/0.2.0.md
- Recoverable capability errors: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/capability-errors.md
- Optional EF Core schema exposure: https://github.com/ashpeterson/AgentBlazor/blob/master/docs/entity-framework.md
- Starter sample: https://github.com/ashpeterson/AgentBlazor/tree/master/samples/AgentBlazor.Starter
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Azure.AI.OpenAI (>= 2.8.0-beta.1)
- Markdig (>= 0.38.0)
- Microsoft.Agents.AI (= 1.1.0)
- Microsoft.Agents.AI.Abstractions (= 1.1.0)
- Microsoft.Agents.AI.Hosting (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.Hosting.AGUI.AspNetCore (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.OpenAI (= 1.1.0)
- Microsoft.Agents.AI.Workflows (= 1.1.0)
- Microsoft.AspNetCore.Components.Web (>= 10.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.4)
- Microsoft.Extensions.Options (>= 10.0.3)
- MudBlazor (>= 9.0.0)
-
net8.0
- Azure.AI.OpenAI (>= 2.8.0-beta.1)
- Markdig (>= 0.38.0)
- Microsoft.Agents.AI (= 1.1.0)
- Microsoft.Agents.AI.Abstractions (= 1.1.0)
- Microsoft.Agents.AI.Hosting (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.Hosting.AGUI.AspNetCore (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.OpenAI (= 1.1.0)
- Microsoft.Agents.AI.Workflows (= 1.1.0)
- Microsoft.AspNetCore.Components.Web (>= 8.0.12)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.4)
- Microsoft.Extensions.Options (>= 10.0.3)
- MudBlazor (>= 9.0.0)
-
net9.0
- Azure.AI.OpenAI (>= 2.8.0-beta.1)
- Markdig (>= 0.38.0)
- Microsoft.Agents.AI (= 1.1.0)
- Microsoft.Agents.AI.Abstractions (= 1.1.0)
- Microsoft.Agents.AI.Hosting (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.Hosting.AGUI.AspNetCore (= 1.1.0-preview.260410.1)
- Microsoft.Agents.AI.OpenAI (= 1.1.0)
- Microsoft.Agents.AI.Workflows (= 1.1.0)
- Microsoft.AspNetCore.Components.Web (>= 9.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.4)
- Microsoft.Extensions.Options (>= 10.0.3)
- MudBlazor (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.21 | 40 | 6/11/2026 |
| 0.2.20 | 41 | 6/11/2026 |
| 0.2.19 | 45 | 6/10/2026 |
| 0.2.18 | 53 | 6/8/2026 |
| 0.2.17 | 58 | 6/4/2026 |
| 0.2.16 | 47 | 6/4/2026 |
| 0.2.15 | 52 | 6/4/2026 |
| 0.2.14 | 55 | 6/4/2026 |
| 0.2.13 | 52 | 6/3/2026 |
| 0.2.12 | 56 | 6/3/2026 |
| 0.2.11 | 54 | 6/3/2026 |
| 0.2.10 | 50 | 6/1/2026 |
| 0.2.9 | 53 | 6/1/2026 |
| 0.2.8 | 59 | 6/1/2026 |
| 0.2.7 | 52 | 6/1/2026 |
| 0.2.6 | 55 | 6/1/2026 |
| 0.2.5 | 55 | 5/29/2026 |
| 0.2.4 | 52 | 5/29/2026 |
| 0.2.3 | 63 | 5/28/2026 |
| 0.2.2 | 52 | 5/27/2026 |
v0.2.2: CLI v1 analyze package refresh targeting net10.0, referenced Razor project route discovery, stricter LLM workflow validation, and expanded real-app verification across 11 public Blazor repositories. Includes v0.2 structured errors, EF schema exposure, hosted demo observability, and mobile chat input stability fixes.