Realtime API demo for advanced agentic patterns
Top 8.6% on sourcepulse
This repository demonstrates advanced agentic patterns for real-time voice applications using OpenAI's Realtime API. It targets developers looking to prototype multi-agent voice systems, enabling sequential agent handoffs, background escalations to more capable models, and state-machine-driven data collection for tasks like authentication.
How It Works
The system orchestrates multiple agents based on a defined graph, allowing for sequential handoffs and conditional routing. It leverages a state-machine approach within agent prompts to ensure accurate, step-by-step data collection, including character-by-character confirmation for sensitive information. For complex or high-stakes decisions, it can escalate to more powerful models like o1-mini
in the background.
Quick Start & Requirements
npm i
OPENAI_API_KEY
to your environment variables.npm run dev
http://localhost:3000
.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is described as a "simple demonstration" and a "minimal demo," suggesting it may not be production-ready without further development. The lack of a specified license could pose compatibility issues for commercial or closed-source use.
1 month ago
1+ week