quick question, if I have multiple participants jo...
# agents
g
quick question, if I have multiple participants joined the same room, and the agent responds to that room, is that message gets to all the participants? I'm using same room for connecting agent with participants, I multiple user connects to same room, and agent responds is that going to be seen in every room or do I need like separate room when user asks for token for dealing with each user
l
if I have multiple participants joined the same room, and the agent responds to that room, is that message gets to all the participants?
Yes, the audio published by the agent will be received by all other participants in the room
or do I need like separate room when user asks for token for dealing with each user
You would need a separate room if you want the interaction with the agent to be 1:1, it depends on your use case. You can generate a two tokens for the same room (for two different users) if needed.
so
Copy code
l = context.userdata.ctx.room.local_participant.identity
this in a tool will give me access to current participant I'm interacting w?
ctx in userdata is JobContext.
local_participant
is the agent itself. If you want to find others in the room, you can use
remote_participants
, like this example that sends a message to them: https://github.com/livekit-examples/python-agents-examples/blob/main/complex-agents/role-playing/agents/base_agent.py#L116