.NETDaniel Roth11 min readintermediate
Build Agentic UI with the new Blazor AI components
Summary
The new experimental Blazor AI components provide building blocks for "Agentic UI," enabling developers to integrate AI agent interactions into Blazor applications. They offer components and a state model to render streamed agent output, tool calls, and shared application state.
- Blazor AI components (`Microsoft.AspNetCore.Components.AI`) facilitate building UIs that interact with AI agents.
- `ChatPage` provides a complete conversational UI, while `UIAgent` manages interaction state and maps agent responses to `ContentBlock` instances.
- `ContentBlock` represents parts of an interaction (e.g., conversational content, tool calls) with observable state.
- Integration with `AG-UI.NET SDK` allows connecting to remote agents via an open, event-based protocol.
This is important for .NET developers looking to build sophisticated AI-powered user interfaces that go beyond simple chat, enabling agents to collaborate with users on multi-step tasks.
7/10




