agui-dotnet-transport

Installation
SKILL.md

AG-UI .NET Transport & Encoding

Encodes the non-obvious design constraints of the AG-UI .NET transport layer, discovered while building protobuf support. Apply when adding/changing an encoding or the negotiation that selects one. Read references/wire-format.md before touching the protobuf codec or framing.

Transport architecture

One bidirectional abstraction, IAGUIEventStreamFormatter (in AGUI.Formatting), serves every transport and both directions:

Member Role
MediaType Advertised in client Accept and written as server Content-Type. Registration order = preference.
CanRead(contentType) Client picks the decoder for the response Content-Type.
ReadAsync(body, ct) Decode body → IAsyncEnumerable<BaseEvent>.
WriteAsync(events, output, ct) Encode events → body.
Installs
10
GitHub Stars
20.8K
First Seen
Jun 30, 2026