glamorous-finland-74321
11/11/2025, 6:45 AMlively-winter-88668
11/11/2025, 9:57 AMif 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 userYou 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 codel = 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