examples/realtime/app/README.md
A web-based realtime voice assistant demo with a FastAPI backend and HTML/JS frontend.
Install the required dependencies:
uv add fastapi uvicorn websockets
Start the application with a single command:
cd examples/realtime/app && uv run python server.py
Then open your browser to: http://localhost:8000
To use the same UI with your own agents, edit agent.py and ensure get_starting_agent() returns the right starting agent for your use case.
window.confirm dialog so you can allow or deny the tool call before it executes.conversation.item.create event with input_image (plus optional input_text),
followed by response.create to start the model response. The messages pane
renders image bubbles for input_image content.The demo showcases the core patterns for building realtime voice applications with the OpenAI Agents SDK.