This repository demonstrates how to build low-latency, streaming “voice + chat” agents using OpenAI’s Realtime API combined with the OpenAI Agents SDK. The demo shows patterns for connecting a realtime voice stream (audio in/out) with agents that can use tools, maintain state, and orchestrate multi-agent workflows. The SDK offers abstractions such as agent orchestration, event handling, handoffs, state management, and guardrails, tailored to support realtime, conversational systems. The demo includes a Next.js frontend for browser interaction and likely a backend component to orchestrate realtime sessions and agent logic. It also supports a “Chat-Supervisor” pattern where a lightweight realtime chat agent handles user interactions and delegates more complex reasoning or tool usage to a stronger textual model (e.g. GPT-4). Because realtime agents are still a beta feature, the code and API surface are subject to changes and may evolve.

Features

  • Realtime voice + chat agent integration using the Realtime API
  • Agent orchestration, handoff, and multi-agent coordination via the Agents SDK
  • Chat-Supervisor pattern: lightweight realtime agent delegating to stronger models
  • Frontend (Next.js) and backend setup for browser-based interaction
  • State management, guardrails, and event handling built in
  • Demo scaffolding for building voice-enabled, tool-augmented agents

Project Samples

Project Activity

See All Activity >

Categories

AI Agents

License

MIT License

Follow OpenAI Realtime Agents

OpenAI Realtime Agents Web Site

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of OpenAI Realtime Agents!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript AI Agents

Registered

4 days ago