SOLVED: You have to make sure the agent_name is se...
# agents
p
SOLVED: You have to make sure the agent_name is set in the WorkerOptions at runtime. Hello lk team! I am have one question about the hosted agent. Using the
lk agent deploy
i can successfully deploy the agent. I am missing my
agent_name
tho. Where can I set a name for the agent? In the screenshot you can see its empty. Setting agent.name in the
livekit.toml
is not registered. I tried the search in slack but i didnt find a clear answer.
s
Hi Pierre. You need to set an agent_name in WorkerOptions in your agent file. See: https://docs.livekit.io/agents/worker/agent-dispatch/#explicit
✅ 1
p
Thank you Tobias! i didn't expect the agent name to be a runtime thing. Working on it
👍 1
s
Just to be clear, setting an agent name has other implications for dispatching calls. If an agent is given a name, when creating a room you must also specify that agent name in the token if you want the agent to join. Leaving an agent anonymous will have it join all rooms.