agentPeerId property

String? get agentPeerId

The participant id of the first AI agent in the room, or null if there is none. The agent itself is in agentParticipants.

Implementation

String? get agentPeerId =>
    agentParticipants.isEmpty ? null : agentParticipants.keys.first;