OpenAI Realtime Agents
StaleDescription
A demonstration of advanced agentic patterns built on top of OpenAI's Realtime API, showcasing real-time voice interaction and multi-agent collaboration.
Key Features
- Chat-Supervisor pattern: lightweight realtime chat agent handles basic tasks while a more intelligent text-based supervisor model handles complex tool calls
- Sequential Handoff pattern: specialized agents transfer users between them to handle specific intents, inspired by OpenAI Swarm
- Built on OpenAI Agents SDK with unified agent orchestration, state management, and event handling
- Low-latency streaming voice interactions via OpenAI Realtime API
- Extensible multi-agent collaboration with guardrails, handoffs, and tool use
- Configurable decision boundary allowing gradual migration from text to realtime agents
Use Cases
Categories
Quick Start
1. Clone the repo and install dependencies with `npm i`
2. Add your OPENAI_API_KEY to `.env` (copy from `.env.sample`)
3. Run `npm run dev` and open http://localhost:3000
4. Select a scenario from the top-right dropdown to try Chat-Supervisor or Sequential Handoff patterns