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.
@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:- RunAgentInput - Input payload for running agents
- Message types - Conversation, tool, activity, and reasoning messages
- AGUIContext - Contextual information provided to agents
- AGUITool - Tool definitions with JSON Schema parameters
- AgentCapabilities - Structured capability declarations
Types Reference
Complete documentation of the protocol types in
AGUI.AbstractionsMultimodal Inputs
User message content parts for text, image, audio, video, document, and binary input
Events
Events power communication between agents and frontends:- Lifecycle events - Run and step tracking
- Text message events - Assistant message streaming
- Tool call events - Function call lifecycle
- State management events - Agent state and message snapshots
- Reasoning events - Reasoning stream support
- Activity events - Structured progress and transient UI state
- Special events - Raw and custom events
Events Reference
Complete documentation of all event types in
AGUI.Abstractions