livekit / agents

Build real-time multimodal AI applications 🤖🎙️📹
https://docs.livekit.io/agents
Apache License 2.0
1.02k stars 198 forks source link

Force agent to join specific room during debugging #670

Open willsmanley opened 2 weeks ago

willsmanley commented 2 weeks ago

When I create a room from client-side request, sometimes my dev agent does not join. I think this happens when I'm running the agent in dev mode and make some live changes after an error state occurs. As a result, livekit cloud logic does not remove the old worker from the pool and probably tries to assign the new room to the old agent.

Is there any way to force the agent to join the dev room?

davidzhao commented 2 weeks ago

are you creating the same room name or new room? for testing purposes, we'd recommend using a new room name each time because the old one may not have ended (and when no new rooms, no new dispatches are created)

willsmanley commented 2 weeks ago

yes its a new room name each time