AiSdk.UiStreamProtocol 1.0.4

dotnet add package AiSdk.UiStreamProtocol --version 1.0.4
                    
NuGet\Install-Package AiSdk.UiStreamProtocol -Version 1.0.4
                    
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="AiSdk.UiStreamProtocol" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AiSdk.UiStreamProtocol" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="AiSdk.UiStreamProtocol" />
                    
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 AiSdk.UiStreamProtocol --version 1.0.4
                    
#r "nuget: AiSdk.UiStreamProtocol, 1.0.4"
                    
#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 AiSdk.UiStreamProtocol@1.0.4
                    
#: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=AiSdk.UiStreamProtocol&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=AiSdk.UiStreamProtocol&version=1.0.4
                    
Install as a Cake Tool

AiSdk.UiStreamProtocol

Core types and SSE primitives for the Vercel AI SDK UI Stream Protocol.

This package is the foundation — it defines all stream part types and handles SSE framing. Most projects won't use it directly and should instead install the integration package for their use case:

Writing SSE frames

using AiSdk.UiStreamProtocol;
using AiSdk.UiStreamProtocol.Models;

var writer = new UiSseWriter();

await writer.WriteAsync(stream, new TextStart("text-1"));
await writer.WriteAsync(stream, new TextDelta("text-1", "Hello world"));
await writer.WriteAsync(stream, new TextEnd("text-1"));
await writer.WriteAsync(stream, new Finish());
await writer.WriteAsync(stream, new Done());

Each call writes one SSE frame: data: {...}\n\n. Done writes the literal data: [DONE]\n\n.

Stream part types

Category Types
Text TextStart, TextDelta, TextEnd
Reasoning ReasoningStart, ReasoningDelta, ReasoningEnd
Tool calls ToolInputStart, ToolInputDelta, ToolInputAvailable, ToolOutputAvailable
Steps StartStep, FinishStep
Sources SourceUrl, SourceDocument
File File
Custom data Data<T>
Control Finish, Abort, Done
Error Error

Full documentation and source

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.
  • net10.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on AiSdk.UiStreamProtocol:

Package Downloads
AiSdk.UiStreamProtocol.AspNetCore

ASP.NET Core helpers for serving Vercel AI SDK UI streams — IResult, HttpResponse extension, and streaming headers.

AiSdk.UiStreamProtocol.HttpClient

HttpClient helpers for consuming Vercel AI SDK UI streams as IAsyncEnumerable.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 180 3/1/2026
1.0.3 148 2/28/2026
1.0.2 145 2/28/2026
1.0.1 135 2/28/2026
1.0.0 139 2/28/2026