Function: getAgentIdentity()
@roomful/core / getAgentIdentity
Function: getAgentIdentity()
Section titled “Function: 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.
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”AgentIdentity | null
The agent identity, or null for a human peer.