agents
agents copied to clipboard
Allowing user to select one of the many connected agents
I have a Livekit server deployed to which there are 3 different LiveKit agents connected. I want a way to allow user to specify which one of those 3 to be connected to. I tried following:
- The agent can have request_fnc defined in which it can decide if the agent wants to handle the request or not. I tried this, but the method is not getting called. Then found that it's a known issue mentioned at https://docs.livekit.io/agents/build/anatomy/ so this approach does not work.
- The agent can provide an agent name while registering itself with the livekit server as part of WorkerOptions. I did that but then the agent is not called at all even if the user joins a room. Also for this approach, I could not find any way to send the agent name from the client side. Without providing agent name the agent gets called fine.
I would appreciate any suggestions or ideas to achieve the desired result. Thank you.