Agent Runtime
The Voiceblox agent runs as a standalone Python worker process using the LiveKit Agents Python SDK. When you click Test in the builder or call/api/agent-session, the app dispatches a job to the worker.
How it works
- The app creates a LiveKit room with the
AgentConfigJSON in the room metadata - It calls
AgentDispatchClient.createDispatch()to dispatch the job to the registered Python worker - The browser receives a JWT and joins the room
- The worker picks up the job, reads the config from metadata, builds the LLM/TTS/STT instances, and starts the session