Bit.BlazorUI.AI.Server
11.0.0-pre-19
This is a prerelease version of Bit.BlazorUI.AI.Server.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Bit.BlazorUI.AI.Server --version 11.0.0-pre-19
NuGet\Install-Package Bit.BlazorUI.AI.Server -Version 11.0.0-pre-19
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="Bit.BlazorUI.AI.Server" Version="11.0.0-pre-19" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bit.BlazorUI.AI.Server" Version="11.0.0-pre-19" />
<PackageReference Include="Bit.BlazorUI.AI.Server" />
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 Bit.BlazorUI.AI.Server --version 11.0.0-pre-19
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Bit.BlazorUI.AI.Server, 11.0.0-pre-19"
#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 Bit.BlazorUI.AI.Server@11.0.0-pre-19
#: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=Bit.BlazorUI.AI.Server&version=11.0.0-pre-19&prerelease
#tool nuget:?package=Bit.BlazorUI.AI.Server&version=11.0.0-pre-19&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
bit BlazorUI AI Server: the ASP.NET Core ends of the bit BlazorUI AI transports
Streams a reply to bit BlazorUI AI components from an ASP.NET Core server, in the packages' wire format. No component, stylesheet or script reaches the server through it.
dotnet add package Bit.BlazorUI.AI.Server
dotnet add package Bit.BlazorUI.AI.ChatClient # to stream an IChatClient's reply
// Server-sent events: the browser registers UseSseTransport.
app.MapBitAiSse("/api/ai/chat", (request, http, ct) =>
http.RequestServices.GetRequiredService<IChatClient>().StreamBitAiEventsAsync(request, chatOptions, ct))
.RequireAuthorization();
// A WebSocket per reply: the browser registers UseWebSocketTransport. A decision on a tool call the server holds
// comes back up the same socket. Authenticated by cookie, the endpoint lists the origins it serves.
app.MapBitAiWebSocket("/api/ai/ws", (request, http, ct) =>
http.RequestServices.GetRequiredService<IChatClient>().StreamBitAiEventsAsync(request, chatOptions, ct),
new() { WebSockets = new() { AllowedOrigins = { "https://my.app" } } })
.RequireAuthorization();
// SignalR: derive a hub, map it, and the browser registers UseSignalRTransport (Bit.BlazorUI.AI.SignalR).
public sealed class AiHub(IChatClient chatClient) : BitAiHub
{
protected override IAsyncEnumerable<BitAiEvent> StreamAsync(BitAiRequest request, CancellationToken ct) =>
chatClient.StreamBitAiEventsAsync(request, cancellationToken: ct);
}
A tool call the server runs only after the user decides is held with BitAiApprovalBroker
(services.AddSingleton<BitAiApprovalBroker>()): stream a BitAiToolApprovalRequestedEvent, then
await approvals.WaitAsync(toolCallId, ct). The decision arrives through MapBitAiApprovals (SSE), the WebSocket, or
the hub.
| 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. net11.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Bit.BlazorUI.AI.Core (>= 11.0.0-pre-19)
-
net11.0
- Bit.BlazorUI.AI.Core (>= 11.0.0-pre-19)
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 |
|---|---|---|
| 11.0.0-pre-20 | 0 | 11/15/2026 |
| 11.0.0-pre-19 | 141 | 11/13/2026 |
| 11.0.0-pre-18 | 44 | 11/12/2026 |