Function: isAgentPeer()
@roomful/core / isAgentPeer
Function: isAgentPeer()
Section titled “Function: isAgentPeer()”isAgentPeer<
TPresence>(peer):boolean
Defined in: packages/core/src/ai-peer.ts:67
Reports whether a peer is an AI/agent participant (carries an AgentIdentity).
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
Parameters
Section titled “Parameters”Peer<TPresence>
The peer to inspect.
Returns
Section titled “Returns”boolean
true when the peer is an agent.