Python Worker
The Python worker runs the Voiceblox agent using the LiveKit Agents Python SDK (v1.4+).Prerequisites
- Python 3.12+
- uv (Python package manager)
Setup
Running
Starting the agent server
/ensure-worker. It auto-reloads on file changes in development.
Connecting to the playground
Start both the app and the agent server:AGENT_SERVER_URL=http://localhost:8080 is set in .env.local.
When you click Test in the builder, the app creates a LiveKit room with the AgentConfig in metadata and dispatches the job to this worker.
Required environment variables
The worker loads environment variables from the project root.env.local.
Supported providers
LLM
OpenAI, Gemini, Groq, Together, Azure, Cerebras, xAI, Fireworks, Perplexity, DeepSeek, Moonshot, Telnyx, Ollama, OVHcloudTTS
ElevenLabs, Deepgram, OpenAI, Cartesia, Rime, Neuphonic, ResembleSTT
Deepgram, OpenAI, Groq, OVHcloudTools
- MCP servers — native
MCPServerHTTPsupport with bearer/API key auth - Exa web search — configurable search type and result count