-
Notifications
You must be signed in to change notification settings - Fork 642
Description
Infrastructure: Implement the foundational infrastructure for AG-UI protocol support in the .NET Agent Framework, including:
- Two new packages:
Microsoft.Agents.AI.AGUIfor client-side consumption andMicrosoft.Agents.AI.Hosting.AGUI.AspNetCorefor server-side hosting - Core event models for the AG-UI protocol with bidirectional conversion between AG-UI events and framework-native types (
AgentRunResponseUpdate,ChatMessage) - HTTP/SSE streaming support and thread management via
AGUIAgentThread - Server-side
MapAGUIAgentextension method for exposing .NET agents as AG-UI endpoints - Client-side
AGUIAgentclass for consuming any AG-UI-compliant server
Text Streaming: Implement Phase 1 text streaming capabilities with support for lifecycle events (RunStarted, RunFinished, RunError) and text message events (TextMessageStart, TextMessageContent, TextMessageEnd). Enable real-time streaming of conversational text between AG-UI clients and servers with proper Server-Sent Events (SSE) formatting. Include comprehensive testing (unit tests, integration tests for end-to-end scenarios) and a complete AGUIClientServer sample application demonstrating both client and server usage. Keep AG-UI protocol details internal while exposing clean public APIs aligned with the framework's abstractions.