Skip to content

Commit 742b6c4

Browse files
Merge branch 'main' into litebox-readme-update
2 parents 9d5347c + 323aa18 commit 742b6c4

File tree

44 files changed

+3352
-133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+3352
-133
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
Thanks for your interest in improving **AG-UI**!
44

55
This short guide shows the fastest way to get your idea merged.
6+
You can find more detailed contribution guides at [ag-ui.com](ag-ui.com)
67

78
---
89

README.md

Lines changed: 65 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
[![AG-UI Workshop – June 5](https://img.shields.io/badge/AG--UI%20Workshop%20%E2%80%94June%2005-blue?style=flat-square)](https://go.copilotkit.ai/ag-ui-working-group-3)
1+
[![AG-UI Workshop – June 20](https://img.shields.io/badge/AG--UI%20Workshop%20%E2%80%94June%2020-blue?style=flat-square)](https://go.copilotkit.ai/ag-ui-build-an-agent-canvas)
2+
![Discord](https://img.shields.io/discord/1379082175625953370?logo=discord&logoColor=%23FFFFFF&label=Discord&color=%236963ff)
3+
24

35
# <img src="https://github.com/user-attachments/assets/ebc0dd08-8732-4519-9b6c-452ce54d8058" alt="ag-ui Logo" height="42px" /> AG-UI: The Agent-User Interaction Protocol
6+
AG-UI is a lightweight, event-based protocol that standardizes how AI agents connect to front-end applications. Built for simplicity and flexibility, it enables seamless integration between your AI agents and user interfaces.
47

5-
AG-UI is an open, lightweight, event-based protocol that standardizes **how AI agents connect to front-end applications**.
8+
![AG-UI](https://github.com/user-attachments/assets/bec3bc01-d8f2-4667-885e-028cbcbc8439)
69

7-
➡️ See demos of AG-UI-enabled applications [here](https://github.com/ag-ui-protocol/ag-ui?tab=readme-ov-file#ag-ui-compatible-agent-frameworks)
810

911
<img src="./assets/banner.png" alt="ag-ui Logo" style="width: 100%; height: auto;" />
1012

11-
# ➡️ Learn more (AG-UI Specification)
13+
# What is AG-UI? (Specification)
1214

1315
AG-UI is an open, lightweight, event-based protocol for agent-human interaction, designed for simplicity & flexibility:
1416

15-
- During agent executions, agent backends **emit events _compatible_ with one of AG-UI's 16 standard event types**
17+
- During agent executions, agent backends **emit events _compatible_ with one of AG-UI's ~16 standard event types**
1618
- Agent backends can **accept one of a few simple AG-UI compatible inputs** as arguments
1719

1820
**AG-UI includes a flexible middleware layer** that ensures compatibility across diverse environments:
@@ -22,104 +24,105 @@ AG-UI is an open, lightweight, event-based protocol for agent-human interaction,
2224

2325
It also ships with a **reference HTTP implementation** and **default connector** to help teams get started fast.
2426

25-
[Learn more at docs.ag-ui.com](https://ag-ui.com)
26-
27-
## Why AG-UI?
28-
29-
AG-UI was developed based on real-world requirements and practical experience building in-app agent interactions.
3027

31-
It was shaped through:
28+
[Learn more about the specs](https://go.copilotkit.ai/ag-ui-introduction)
3229

33-
- Working with users in the CopilotKit community to understand the needs of agent-based interactions in applications
34-
- Collaborating closely with leading agent frameworks (LangGraph, Mastra, CrewAI, AG2, etc.)
35-
- Extracting common infrastructure patterns that emerged across varied frameworks into a standardized, open protocol
3630

37-
This practical approach has helped ensure that AG-UI is both flexible and immediately applicable in real-world use cases.
38-
39-
# ➡️ Build AG-UI-Powered Applications
40-
41-
Play with this hello-world app here:
42-
https://agui-demo.vercel.app/
31+
## Why AG-UI?
4332

44-
Video:
33+
AG-UI was developed based on real-world requirements and practical experience building in-app agent interactions.
4534

46-
https://github.com/user-attachments/assets/18c03330-1ebc-4863-b2b8-cc6c3a4c7bae
35+
## Where does AGUI fit in the agentic protocol stack?
36+
AG-UI is complementary to the other 2 top agentic protocols
37+
- MCP gives agents tools
38+
- A2A allows agents to communicate with other agents
39+
- AG-UI brings agents into user-facing applications
4740

48-
## Select Your Language
41+
<div align="center">
42+
<img src="https://github.com/user-attachments/assets/0c1ec566-050b-4ef8-ab89-15be41abe64f" height="300px" />
43+
</div>
44+
45+
## Features
4946

50-
- [TypeScript](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk)
51-
- [Python](https://github.com/ag-ui-protocol/ag-ui/tree/main/python-sdk)
47+
- 💬 Real-time agentic chat with streaming
48+
- 🔄 Bi-directional state synchronization
49+
- 🧩 Generative UI and structured messages
50+
- 🧠 Real-time context enrichment
51+
- 🛠️ Frontend tool integration
52+
- 🧑‍💻 Human-in-the-loop collaboration
5253

53-
## AG-UI Compatible Agent Frameworks
54+
## Framework Support
5455

55-
AG-UI works with several popular agent frameworks and frontend solutions:
56+
AG-UI integrates with many popular agent frameworks
5657

5758
| Framework | Status | AG-UI Resources |
5859
| ------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------- |
59-
| [LangGraph](https://www.langchain.com/langgraph) | ✅ Supported | ➡️ [Live Demo / Getting Started Docs](https://v0-langgraph-land.vercel.app/) |
60-
| [Mastra](https://mastra.ai/) | ✅ Supported | ➡️ [Live Demo / Getting Started Docs](https://v0-mastra-land.vercel.app/) |
61-
| [CrewAI](https://crewai.com/) | ✅ Supported | ➡️ [Live Demo / Getting Started Docs](https://v0-crew-land.vercel.app/) |
62-
| [AG2](https://ag2.ai/) | ✅ Supported | ➡️ [Live Demo / Getting Started Docs](https://v0-ag2-land.vercel.app/) |
63-
| [Agno](https://github.com/agno-agi/agno) | 🛠️ In Progress ||
64-
| [LlamaIndex](https://www.llamaindex.ai) | 🛠️ In Progress ||
60+
| No-framework | ✅ Supported | ➡️ Docs coming soon |
61+
| [LangGraph](https://www.langchain.com/langgraph) | ✅ Supported | ➡️ [Demo](https://v0-langgraph-land.vercel.app/) |
62+
| [Mastra](https://mastra.ai/) | ✅ Supported | ➡️ [Demo](https://v0-mastra-land.vercel.app/) |
63+
| [CrewAI](https://crewai.com/) | ✅ Supported | ➡️ [Demo](https://v0-crew-land.vercel.app/) |
64+
| [AG2](https://ag2.ai/) | ✅ Supported | ➡️ [Demo](https://v0-ag2-land.vercel.app/) |
65+
| [Agno](https://github.com/agno-agi/agno) | ✅ Supported | ➡️ [Docs](https://docs.copilotkit.ai/agno) | |
66+
| [LlamaIndex](https://github.com/run-llama/llama_index) | ✅ Supported | ➡️ [Docs](https://docs.copilotkit.ai/llamaindex) | |
67+
| [Pydantic AI](https://github.com/pydantic/pydantic-ai) | 🛠️ In Progress ||
68+
| [Vercel AI SDK](https://github.com/vercel/ai) | 🛠️ In Progress ||
6569
| [OpenAI Agent SDK](https://openai.github.io/openai-agents-python/) | 💡 Open to Contributions ||
6670
| [Google ADK](https://google.github.io/adk-docs/get-started/) | 💡 Open to Contributions ||
67-
| [Vercel AI SDK](https://github.com/vercel/ai) | 💡 Open to Contributions ||
6871
| [AWS Bedrock Agents](https://aws.amazon.com/bedrock/agents/) | 💡 Open to Contributions ||
6972
| [Cloudflare Agents](https://developers.cloudflare.com/agents/) | 💡 Open to Contributions ||
70-
| [Pydantic AI ](https://ai.pydantic.dev/) | 💡 Open to Contributions ||
7173
| [Strands Agents SDK](https://github.com/strands-agents/sdk-python) | 💡 Open to Contributions ||
7274

7375
| Language SDK | Status | AG-UI Resources |
7476
| ------------------------------------------------------------------ | ------------------------ | ---------------------------------------------------------------------------- |
7577
| [.NET]() | 🛠️ In Progress | ➡️ [PR](https://github.com/ag-ui-protocol/ag-ui/pull/38) |
7678
| [Nim]() | 🛠️ In Progress | ➡️ [PR](https://github.com/ag-ui-protocol/ag-ui/pull/29) |
79+
| [Rust]() | 🛠️ In Progress | |
7780

78-
## Features
7981

80-
AG-UI-compatible agents **securely** and **efficiently** support:
82+
[View all supported frameworks →](https://ag-ui.com/frameworks)
8183

82-
- 💬 Agentic chat with real-time streaming
83-
- 🔄 Bi-directional state sync (in and out of chat)
84-
- 🧩 Generative UI and structured messages (with delta streaming)
85-
- 🧠 Realtime context enrichment
86-
- 🛠️ Frontend tool use (tool calls)
87-
- 🧑‍💻 Human-in-the-loop and human-on-the-loop collaboration
84+
## AG-UI Hello World
8885

89-
And more. [Learn more at ag-ui.com](https://ag-ui.com)
86+
https://github.com/user-attachments/assets/419e4b8c-09f1-4cf0-b76b-339c7a207584
9087

91-
## AG-UI Showcase: The AG-UI Dojo (Building-Blocks Viewer)
9288

93-
The [ag-ui dojo](https://feature-viewer-langgraph.vercel.app/) showcases many of the building blocks that ag-ui supports.
89+
## AG-UI Showcase: The AG-UI Dojo (Building-Blocks Viewer)
90+
The [AG-UI Dojo](https://copilotkit-feature-viewer.vercel.app/) showcases many of the building blocks that AG-UI supports ([AG-UI Dojo Source Code](https://github.com/ag-ui-protocol/ag-ui/tree/main/typescript-sdk/apps/dojo)).
9491

9592
The building blocks are designed to be simple and focused -- between 50-200 lines of code.
9693

97-
https://github.com/user-attachments/assets/a67d3d54-36b2-4c7a-ac69-a0ca01365d5b
94+
[Video:](https://github.com/user-attachments/assets/18c03330-1ebc-4863-b2b8-cc6c3a4c7bae)
9895

99-
## Client Libraries
96+
## Getting Started
10097

101-
AG-UI provides ready-to-use client libraries for building connected experiences:
98+
Choose your path:
10299

103-
- **React client** via [CopilotKit](https://docs.copilotkit.ai/)
104-
- Messaging clients (WhatsApp, WeChat, RCS) — WIP in collaboration with AWS SNS
100+
### Building AG-UI Powered Applications
105101

106-
# ➡️ Contribute to AG-UI
102+
Create a new AG-UI application in seconds:
107103

108-
Learn how to contribute to AG-UI: [AG-UI Contribution Guide](https://go.copilotkit.ai/agui-contribute)
104+
```bash
105+
npx create-ag-ui-app my-agent-app
106+
```
109107

110-
Book time with Markus Ecker, the creator of AG-UI: https://calendly.com/markus-copilotkit/ag-ui
108+
[View Documentation](https://go.copilotkit.ai/ag-ui-introduction) · [Join Discord](https://discord.gg/Jd3FzfdJa8)
111109

112-
Join the Discord: https://discord.gg/Jd3FzfdJa8
110+
### Building AG-UI Integrations (new frameworks)
113111

114-
## Community
112+
1. [Build new integrations (Quickstart)](https://go.copilotkit.ai/build-quickstart)
113+
2. [Book a call to discuss an AG-UI integration with a new framework](https://go.copilotkit.ai/ag-ui-book-a-call)
114+
3. [Join the Discord Community](https://go.copilotkit.ai/AG-UI-Discord)
115115

116-
### Upcoming Events
117116

118-
- **[AG-UI: Workshop](https://go.copilotkit.ai/ag-ui-working-group-3)**
119-
📅 Friday, June 5, 9:00 AM PT
120-
🔗 [Register now](https://go.copilotkit.ai/ag-ui-working-group-3)
117+
## Contributing
121118

122119

123-
## Contributing
120+
Check out the [Contributing guide](https://github.com/ag-ui-protocol/ag-ui/blob/main/CONTRIBUTING.md)
121+
122+
- **[AG-UI: Build an agent canvas with AG-UI](https://go.copilotkit.ai/ag-ui-build-an-agent-canvas)**
123+
📅 Friday, June 20, 9:00 AM PT
124+
125+
126+
## License
124127

125-
We 💜 contributions! Whether you're fixing bugs, improving documentation, or building demos — your contributions make AG-UI better.
128+
AG-UI is open source and available under the MIT License.

docs/development/contributing.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,15 @@ title: Contributing
33
description: How to participate in Agent User Interaction Protocol development
44
---
55

6+
# Naming conventions
7+
8+
Add your package under `typescript-sdk/integrations/` with docs and tests.
9+
10+
If your integration is work in progress, you can still add it to main branch.
11+
You can prefix it with `wip-`, i.e.
12+
(`typescript-sdk/integrations/wip-your-integration`) or if you're a third party
13+
contributor use the `community` prefix, i.e.
14+
(`typescript-sdk/integrations/community-your-integration`).
15+
616
For questions and discussions, please use
717
[GitHub Discussions](https://github.com/orgs/ag-ui-protocol/discussions).

docs/docs.json

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,17 @@
1919
"introduction",
2020
{
2121
"group": "Quickstart",
22-
"pages": ["quickstart/middleware", "quickstart/server"]
22+
"pages": [
23+
"quickstart/applications",
24+
{
25+
"group": "Build integrations",
26+
"pages": [
27+
"quickstart/introduction",
28+
"quickstart/server",
29+
"quickstart/middleware"
30+
]
31+
}
32+
]
2333
},
2434
"integrations"
2535
]
@@ -104,11 +114,16 @@
104114
"dark": "/logo/dark.svg"
105115
},
106116
"navbar": {
107-
"links": [],
117+
"links": [
118+
{
119+
"label": "Discord",
120+
"href": "https://discord.gg/Jd3FzfdJa8",
121+
"icon": "server"
122+
}
123+
],
108124
"primary": {
109-
"type": "button",
110-
"label": "GitHub",
111-
"href": "https://github.com/ag-ui-protocol"
125+
"type": "github",
126+
"href": "https://github.com/ag-ui-protocol/ag-ui"
112127
}
113128
},
114129
"seo": {
@@ -119,7 +134,7 @@
119134
},
120135
"footer": {
121136
"socials": {
122-
"github": "https://github.com/ag-ui-protocol"
137+
"github": "https://github.com/ag-ui-protocol/ag-ui"
123138
}
124139
},
125140
"redirects": [

docs/quickstart/applications.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: "Build applications"
3+
description:
4+
"Build agentic applications utilizing compatible event AG-UI event streams"
5+
---
6+
7+
# Introduction
8+
9+
AG-UI provides a concise, event-driven protocol that lets any agent stream rich,
10+
structured output to any client. It can be used to connect any agentic system to
11+
any client.
12+
13+
A client is defined as any system that can receieve, display, and respond to
14+
AG-UI events. For more information on existing clients and integrations, see
15+
the [integrations](/integrations) page.
16+
17+
# Automatic Setup
18+
AG-UI provides a CLI tool to automatically create or scaffold a new application with any client and server.
19+
20+
```sh
21+
npx create-ag-ui-app@latest
22+
```
23+
24+
<img
25+
className="w-full rounded-3xl mx-auto"
26+
src="https://copilotkit-public-assets.s3.us-east-1.amazonaws.com/docs/ag-ui/quickstart.gif"
27+
/>
28+

docs/quickstart/introduction.mdx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: "Introduction"
3+
description: "Learn how to get started building an AG-UI integration"
4+
---
5+
6+
<video
7+
src="https://copilotkit-public-assets.s3.us-east-1.amazonaws.com/docs/ag-ui/ag-ui-animation-simple.mp4"
8+
autoPlay
9+
playsInline
10+
muted
11+
className="w-full h-[390px] rounded-lg object-cover mx-auto block"
12+
/>
13+
14+
# What is an Integration?
15+
16+
An AG-UI integration makes your agent speak the AG-UI protocol. This means your agent can work with any AG-UI compatible client application - like chat interfaces, copilots, or custom AI tools.
17+
18+
Think of it like adding a universal translator to your agent. Instead of building custom APIs for each client, you implement AG-UI once and instantly work with any compatible application.
19+
20+
Agents integrating with AG-UI can:
21+
- **Stream responses** - Real-time text that appears as it's generated
22+
- **Call client-side tools** - Your agent can use functions and services defined by clients
23+
- **Share state** - Your agent's state is bidirectional shared state
24+
- **Execute universally** - Integrate with any AG-UI compatible client application
25+
- **And much more!** - Check out the full specification [here](/concepts/events).
26+
27+
### When should I make any integration?
28+
If the integration you're looking for is not listed on our [integrations page](/integrations), you'll need to make an integration. We've got a few guides on this below!
29+
30+
However, if you're looking to utilize an existing integration (like LangGraph, CrewAI, Mastra, etc.), you can skip this step and go straight to [building an application](/quickstart/applications).
31+
32+
# Types of Integrations
33+
So you've decided you need an integration! Great, there are **two main ways** to implement an AG-UI integration:
34+
35+
<CardGroup cols={2}>
36+
<Card
37+
icon="server"
38+
title="Server Implementation"
39+
href="/quickstart/server"
40+
>
41+
Emit AG-UI events **directly from your agent** or server.
42+
</Card>
43+
<Card
44+
icon="code"
45+
title="Middleware Implementation"
46+
href="/quickstart/middleware"
47+
>
48+
**Translate existing protocols** and applications to AG-UI events.
49+
</Card>
50+
</CardGroup>
51+
52+
### When to use a server implementation
53+
Server implementations allow you to directly emit AG-UI events from your agent or server. If you are not using an
54+
agent framework or haven't created a protocol for your agent framework yet, this is the best way to get started.
55+
56+
Server implementations are also great for:
57+
- Building a **new agent frameworks** from scratch
58+
- **Maximum control** over how and what events are emitted
59+
- Exposing your agent as a **standalone API**
60+
61+
### When to use a middleware implementation
62+
Middleware is the flexible option. It allows you to translate existing protocols and applications to AG-UI events
63+
creating a bridge between your existing system and AG-UI.
64+
65+
Middleware is great for:
66+
- Taking your **existing protocol or API** and **translating it universally**
67+
- Working within the confines of **an existing system or framework**
68+
- **When you don't have direct control** over the agent framework or system

0 commit comments

Comments
 (0)