Skip to content

Function: getAgentIdentity()

@roomful/core


@roomful/core / getAgentIdentity

getAgentIdentity<TPresence>(peer): AgentIdentity | null

Defined in: packages/core/src/ai-peer.ts:39

Reads a peer’s AgentIdentity from its presence, or null when the peer is human. Safe against malformed remote presence.

TPresence extends PresenceData = PresenceData

Peer<TPresence>

The peer to inspect.

AgentIdentity | null

The agent identity, or null for a human peer.