Skip to main content

AGUI.Abstractions

AGUI.Abstractions is the protocol-types package for the AG-UI .NET SDK. It defines the shared event, message, tool, context, capability, interrupt, and serialization types used by AG-UI clients and servers.
dotnet add package AGUI.Abstractions
The package has no opinion about HTTP, ASP.NET Core, or a specific agent runtime. It is the .NET sibling of @ag-ui/core: stable wire types for the event stream and request payload.
AGUI.Abstractions targets net10.0, net9.0, net8.0, netstandard2.0, and net472. It is AOT-compatible: serializable protocol types are registered in the source-generated AGUIJsonSerializerContext.

Types

Core data structures that represent the building blocks of the protocol:

Types Reference

Complete documentation of the protocol types in AGUI.Abstractions

Multimodal Inputs

User message content parts for text, image, audio, video, document, and binary input

Events

Events power communication between agents and frontends:

Events Reference

Complete documentation of all event types in AGUI.Abstractions