creamy-window-79763
04/20/2026, 5:47 PMtall-airline-16756
04/20/2026, 5:47 PMtall-airline-16756
04/20/2026, 5:48 PMremoteParticipants (all other participants) and localParticipant (the current client). Agents join as full participants (ParticipantKind.AGENT), so any count that includes all participants would include agents.
Can you tell me which SDK/language and version you’re using, or paste the code where you read room.num_participants? I’ll confirm how that value is being computed in your environment.
Sources: Client SDKs | livekit/livekit_composite | DeepWiki | Agents (Python) | livekit/livekit_composite | DeepWiki | Livestream Mode, with interactive elementscreamy-window-79763
04/20/2026, 5:55 PMtall-airline-16756
04/20/2026, 5:55 PMroom.num_participants is defined in the LiveKit repo (not LiveKit Agents). I can confirm the repo-level property’s behavior, but I need one quick detail:
Which language/file in the repo defines room.num_participants for you (please share the file path or paste the snippet)?
With that I’ll confirm whether it counts the local participant/agents, or only remote participants, and explain any livestream-mode nuances.
Sources: server-sdk-ruby | livekit/livekit_composite | DeepWiki | client-sdk-js | livekit/livekit_composite | DeepWiki | LiveKit coming to React Native! | LiveKit | Livestream Mode, with interactive elementscreamy-window-79763
04/20/2026, 5:56 PMtall-airline-16756
04/20/2026, 5:56 PM