🤖 AG-UI WASM Worker Test (Pure Rust) - CopilotKit Protocol

Test the AG-UI (Agent User Interaction Protocol) Rust SDK running in a Cloudflare Worker via WASM - Pure Rust Implementation

❓ What is AG-UI?

AG-UI (Agent User Interaction Protocol) is an open, lightweight, event-based protocol created by CopilotKit that standardizes how AI agents communicate with user interfaces in real-time.

📖 Learn more at github.com/attackordie/ag-ui | docs.ag-ui.com | copilotkit.ai

🚀 Why This Demo is Impressive

99%
Rust Code
1%
JavaScript
400+
Lines Rust
26
Lines JS

📋 What You'll See When You Run the Agent

Click "🚀 Run Agent" to see exactly 5 AG-UI events stream in real-time. Here's what each one means:

  1. RUN_STARTED: Workflow begins - Rust router processes your request and initializes the AG-UI stream
  2. TEXT_MESSAGE_START: Assistant message begins - UUID generated in Rust for message tracking
  3. TEXT_MESSAGE_CONTENT: Message content streams - Demonstrates real-time delta content delivery
  4. TEXT_MESSAGE_END: Message complete - Same UUID links all message events together
  5. RUN_FINISHED: Workflow complete - Stream closes and resources cleaned up automatically

💡 All events happen synchronously in this demo, but in production they could be spaced out as real AI processing occurs!

Ready to test AG-UI Worker (Pure Rust) - CopilotKit Protocol

🔍 Technical Details

📖 View source code and documentation: github.com/attackordie/ag-ui/tree/main/rust-sdk