rich-electrician-50935
08/21/2025, 9:30 PMtall-airline-16756
08/21/2025, 9:30 PMtall-airline-16756
08/21/2025, 9:31 PMagent_name parameter in your agent code when working with WorkerOptions. This is super handy for explicit dispatch and telephony setups. Here’s a quick example:
if __name__ == "__main__":
agents.cli.run_app(agents.WorkerOptions(
entrypoint_fnc=entrypoint,
# agent_name is required for explicit dispatch
agent_name="my-telephony-agent"
))
• Configuring livekit.toml: Just a heads-up—the livekit.toml file uses an id field under the [agent] section for deployment, not agent_name. Here’s how that looks:
[project]
subdomain = "<my-project-subdomain>"
[agent]
id = "<agent-id>"
For explicit dispatch, I’d recommend setting agent_name right in your code. If you have any questions or want me to walk you through it, just let me know—I’m here to help!
Sources: livekit/livekit_cloud_agent.pb.go | Agents telephony integration | LiveKit Docs | examples/agent_dispatch.py | Deploying to production | LiveKit Docs | pkg/config/livekit.gorich-electrician-50935
08/21/2025, 9:32 PMtall-airline-16756
08/21/2025, 9:32 PMrich-electrician-50935
08/21/2025, 9:54 PMtall-airline-16756
08/21/2025, 9:55 PM