qmetrics.net

AG-UI Overview

Event-based protocol linking AI agents to user-facing applications

AG-UI Overview screenshot

AG-UI standardizes bi-directional event streams between agent backends and frontends so chat, tools, shared state, and human approvals work consistently across frameworks and clients.

Overview

AG-UI (Agent–User Interaction) is an event-based wire protocol that connects any agent runtime to any client application. Instead of bespoke request/response APIs per framework, agents emit typed lifecycle, message, tool, state, and reasoning events that web, mobile, terminal, or chat clients can render uniformly.

Runs begin with a structured input carrying conversation history, frontend-exposed tools, shared state, and context. The agent responds with a stream from eight event families covering text streaming, tool calls, JSON Patch state deltas, human-in-the-loop interrupts, subagent delegation, multimodal attachments, and custom payloads. Transports include HTTP with Server-Sent Events and a binary Protobuf binding; middleware can adapt other sources.

Official client and server SDKs exist for TypeScript, Python, and .NET, with community ports in several other languages. A scaffolding CLI can generate Next.js or terminal starter apps wired to supported agent frameworks such as LangChain, CrewAI, Google ADK, Microsoft Agent Framework, and AWS Strands.

AG-UI complements MCP for tool access and A2A for agent-to-agent work. Generative UI specs like A2UI can ride on AG-UI as payload types. CopilotKit originated the protocol and ships React and other UI clients; demos in the Dojo illustrate each building block interactively.

Key features

  • Typed bidirectional agent event streams
  • Streaming multi-turn chat with cancel and resume
  • Shared JSON state with patch sync
  • Frontend-executed tools and human interrupts
  • Subagent delegation with traced events
  • Multimodal user and tool I/O
  • HTTP SSE and Protobuf transports
  • CLI project scaffolding for agents

Use cases

  • Embedding agents in web or mobile apps
  • Terminal or Slack-style agent clients
  • Cross-framework agent UI portability
  • Human approval flows mid-run
  • Showing reasoning and tool progress live

Tags

Similar software

Gradio

Python toolkit for machine learning web demos and apps

Gradio is a Python package for building demos or web applications around ML models, APIs, or arbitrary Python functions, with optional link sharing and no JavaScript required.

★ 44.2k⟳ 4 days agoApache-2.0

A2A Protocol

Standard protocol for opaque AI agent communication and collaboration

Agent2Agent (A2A) is a protocol that lets agentic applications on different frameworks and servers discover each other, negotiate interaction, and collaborate securely without sharing internal state.

★ 26.7k⟳ 2 days agoApache-2.0

A2UI

Generative UI framework for agent-streamed native interfaces

A2UI lets agents send layout data over a streaming protocol while client apps draw the UI with native widgets in major web and mobile frameworks.

★ 18.9k⟳ 2 days agoApache-2.0

assistant-ui

TypeScript React primitives and runtimes for production AI chat UIs

React library for assembling ChatGPT-style chat with streaming, tools, attachments, and pluggable backends via the Vercel AI SDK, LangGraph, and other adapters.

★ 13.5k⟳ yesterdayMIT

Streamdown

Streaming Markdown renderer for AI chat UIs

Streamdown is a React-oriented package meant as a drop-in stand-in for react-markdown when model output arrives token by token.

★ 5.8k⟳ 2 days agoApache-2.0

II ElevenLabs UI

React UI components for audio and agent applications

ElevenLabs UI is a shadcn/ui-based component library for agent and audio interfaces in Next.js apps. A CLI adds orbs, waveforms, voice agents, players, and related widgets to your project.

★ 2.5k⟳ 11 days agoMIT