agents icon indicating copy to clipboard operation
agents copied to clipboard

Allowing user to select one of the many connected agents

Open meetakshay99 opened this issue 4 months ago • 5 comments

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:

  1. 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.
  2. 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.

meetakshay99 avatar Oct 23 '24 09:10 meetakshay99