if we put two agents into the same room, is it exp...
# agents
b
if we put two agents into the same room, is it expected that they could speak to each other?
l
b
@lively-winter-88668
Copy code
participant = await ctx.wait_for_participant()
the code seems to be blocking at this, the code below it is not working, even though the two agents are speaking to each other any idea about this one?
l
That function will block until the remote participant joins the room... I guess if both agents call it, they will both wait for the other to join the room.
b
@lively-winter-88668 ha but since we allow the agents to be speaking to each other and i have seen the agents speaking to each other in the room this should count as the agents joining the room right, so it should not be blocking there that was my concern
l
It depends on when you invoke
wait_for_participant
- if you don't need to wait for the other agent to join, then you can probably omit it