Skip to main content

Overview

AG-UI is an open, event-based protocol for bringing agents into frontend applications. When you bindufy() your agent, AG-UI integration will enable real-time agent interactions directly in web and mobile apps. The Stack:
  • MCP - Gives agents tools
  • A2A - Agents communicate with agents
  • AG-UI - Brings agents into user-facing applications ✨

What You Get

Real-time Agent Chat - Streaming responses with generative UI
Bi-directional State - Frontend and agent stay in sync
Human-in-the-Loop - Users can guide agent execution
Frontend Tools - Agents can trigger UI components

How It Works

When your Bindu agent runs, it emits AG-UI compatible events:
# Your agent emits events
agent.emit("message", {"content": "Analyzing data..."})
agent.emit("tool_call", {"tool": "chart", "data": {...}})
agent.emit("input_required", {"prompt": "Which format?"})
Frontend apps listen and render:
<AgentChat 
  agentUrl="http://localhost:3773"
  onMessage={(msg) => renderMessage(msg)}
  onToolCall={(tool) => renderChart(tool.data)}
/>

Supported Frameworks

AG-UI works with your existing agent framework:
  • LangGraph, CrewAI, Agno (partnerships)
  • Mastra, Pydantic AI, LlamaIndex (1st party)
  • OpenAI Agent SDK, Vercel AI SDK (community)

Integration with Bindu

from bindu import bindufy
from bindu.middleware import AGUIMiddleware

# Enable AG-UI events
config = {
    "middleware": [AGUIMiddleware()],
    "events": {
        "streaming": True,
        "generative_ui": True
    }
}

bindufy(agent, config, handler)
Your agent now emits AG-UI compatible events that frontend apps can consume.

Use Cases

Customer Support - Chat interface with agent assistance
Data Analysis - Interactive dashboards with agent insights
Content Creation - Collaborative editing with AI suggestions
Workflow Automation - Visual task execution with human approval

Status

🚀 High Priority - Protocol integration and event emission

What’s Next

  • Learn - Read the AG-UI spec
  • Discuss - Share your use cases on Discord
  • Contribute - Help with Bindu integration