AG-UI Protocol Research Benchmark

February 6, 2026 ยท View on GitHub

Comprehensive benchmark suite for the AG-UI (Agent-User Interaction) protocol across multiple AI agent frameworks. This is a research guide documenting protocol compliance, performance, and capabilities.

What is AG-UI?

AG-UI is an open, lightweight, event-based protocol for agent-user interaction created by CopilotKit. It enables framework-agnostic communication between AI agents and user interfaces through Server-Sent Events (SSE).

Research Goals

This benchmark provides rigorous testing and documentation of:

  • Protocol Compliance - Which frameworks support which AG-UI events
  • Framework Capabilities - What features each framework implements
  • Performance Characteristics - Response times, throughput, tool calling
  • HITL Implementation - How human-in-the-loop workflows work via the protocol

Documentation Structure

๐Ÿ“– Core Reference

๐Ÿ”ฌ Research Results

๐Ÿ“š Guides

Frameworks Tested

This benchmark covers 26 agent implementations across multiple frameworks:

Multi-Model Frameworks (Anthropic, OpenAI, Google):

  • Agno, LangGraph, PydanticAI, LlamaIndex, Vercel AI SDK

Single-Model Frameworks:

  • CrewAI (Anthropic), AG2 (OpenAI), Google ADK (Google)

Raw LLM APIs (baseline):

  • Anthropic, OpenAI, Google Gemini

For detailed framework analysis, see Framework Capabilities.

Quick Start

Prerequisites

  • Python 3.11+
  • Node.js 18+ (for TypeScript agents)
  • uv package manager
  • API keys for OpenAI, Anthropic, and Google

Installation

# Clone the repository
git clone https://github.com/namastexlabs/agui-benchmark.git
cd agui-benchmark

# Install Python dependencies
uv sync

# Install TypeScript dependencies
cd ts-agents && npm install --legacy-peer-deps && cd ..

# Create .env file with your API keys
cat > .env << EOF
ANTHROPIC_API_KEY=your-anthropic-key
OPENAI_API_KEY=your-openai-key
GEMINI_API_KEY=your-gemini-key
EOF

Running Benchmarks

# Start all agents
./start_all.sh

# Wait for agents to initialize
sleep 10

# Run the benchmark
uv run python test_agents.py

# Stop all agents
./stop_all.sh

Benchmark Results

Test Summary

  • Agents Tested: 26 implementations across 9 frameworks
  • Tests Run: 702 total (27 per agent ร— 26 agents)
  • Success Rate: 97.5% (686/702 passed)
  • Models Tested: Claude, OpenAI GPT, Google Gemini, Cerebras Llama

Performance Rankings (Median Response Time)

RankFrameworkModelTime
๐Ÿฅ‡AgnoCerebras262ms
๐ŸฅˆLlamaIndexClaude1,728ms
๐Ÿฅ‰PydanticAIClaude1,746ms
4๏ธโƒฃLangGraphClaude2,296ms
5๏ธโƒฃLlamaIndexGemini2,768ms

Key Insights:

  • Cerebras Llama 3.3-70b is dramatically faster than all others (262ms vs 1.7s+)
  • PydanticAI offers best balance: fast (1.7s with Claude) + reliable (100% success)
  • LangGraph has reliability issues (89% success rate on some models)
  • Raw API wrappers are slower than framework abstractions (20-24s vs 1-8s)

Full Results

See Framework Comparison Matrix for complete rankings and metrics.


Key Findings

HITL Implementation

We validated that human-in-the-loop workflows can be fully implemented using the AG-UI protocol's existing TOOL_CALL_* events, without requiring special HITL-specific events. See HITL Validation Results.

Protocol Coverage

The AG-UI specification defines 26 events across 5 categories:

  • Lifecycle: RUN_STARTED, RUN_FINISHED, RUN_ERROR
  • Text Messages: TEXT_MESSAGE_START/CONTENT/END, THINKING_START/END, THINKING_TEXT_MESSAGE_*
  • Tool Calls: TOOL_CALL_START/ARGS/END/RESULT
  • State: STATE_SNAPSHOT, STATE_DELTA, MESSAGES_SNAPSHOT, ACTIVITY_SNAPSHOT, ACTIVITY_DELTA
  • Custom: STEP_STARTED, STEP_FINISHED, RAW, CUSTOM

See AGUI Spec Reference for complete details.

Framework Comparison (Latest Benchmark)

FrameworkTestsSuccessMedian TimeThroughputTool Calls
agno-cerebras27100%284msโ€”โ€”
pydantic-anthropic27100%1,771ms13.4k c/s20
agno-anthropic27100%2,388ms11.3k c/s19
pydantic-gemini27100%2,738ms54k c/s16
vercel-anthropic27100%2,748ms14.3k c/s13
llamaindex-anthropic2789%1,637msโ€”โ€”
langgraph-anthropic2793%2,295ms6.6k c/sโ€”
openai-raw27100%20,279ms3.4k c/s12

See full comparison: Framework Comparison Matrix


Benchmark Architecture

test_agents.py (Benchmark Runner)
    โ”‚
    โ”œโ”€ Starts 26 agent implementations on various ports
    โ”‚
    โ””โ”€ Runs 27 test scenarios per agent:
       โ€ข Simple prompt (no tools)
       โ€ข Tool calling (6 tools available)
       โ€ข Streaming performance
       โ€ข Error handling
       โ€ข State management
       โ””โ”€ Collects timing, tool calls, response metrics
          Saves JSON results โ†’ generate_reports.py
                                     โ†“
                          Auto-generates 4 markdown reports
                          in docs/reports/

License

MIT License - see LICENSE for details.