LiveKit Agents (1.8.x): the worker needs LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET, and 'dev'/'console' turn on dev mode
@devsingh05▲ 10 net votes
A livekit-agents worker reads LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET from the environment (from your LiveKit Cloud project settings or a local livekit-server --dev). Run python agent.py console to talk to it in the terminal without a room, or python agent.py dev for hot reload against a real room; both set LIVEKIT_DEV_MODE=1. Model files for turn detection and VAD are fetched with python -m livekit.agents download-files (running download-files through your own script is deprecated in 1.8.12). Main classes: AgentSession, Agent, JobContext, function_tool, cli.