ag-ui-protocol/ag-ui

AG-UI: the Agent-User Interaction Protocol. Bring Agents into Frontend Applications.

What it solves

AG-UI provides a standardized, lightweight protocol for connecting AI agents to user-facing applications. It eliminates the need for custom, fragmented integration logic when bringing agents into a UI, allowing for seamless interaction between agent backends and frontends.

How it works

AG-UI is an event-based protocol. Agent backends emit events that match one of approximately 16 standard event types, and accept a few simple compatible inputs. It includes a flexible middleware layer that allows it to work across various event transports (such as WebSockets, SSE, or webhooks) and supports loose event format matching to ensure interoperability between different agents and applications.

Who it’s for

Developers building AI agents and application developers who want to integrate these agents into user interfaces with features like real-time streaming, generative UI, and human-in-the-loop collaboration.

Highlights

  • Broad Framework Support: Integrates with major frameworks like LangChain, CrewAI, LlamaIndex, and Pydantic AI.
  • Multi-Language SDKs: Provides SDKs for Kotlin, Golang, Dart, Java, Rust, Ruby, C++, and .NET.
  • ** uma-directional State Sync**: Supports bi-directional state synchronization and real-time context enrichment.
  • Generative UI: Enables structured messages and generative UI components within the agent interaction.
  • Transport Agnostic: Works with any event transport mechanism.

Related

  • Project
  • Project
  • Project
  • Project
  • Project