Skip to content

Function: getAgentState()

@roomful/core


@roomful/core / getAgentState

getAgentState<TPresence>(peer): AgentState | null

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

Reads a peer’s live AgentState from its presence, or null when absent or malformed.

TPresence extends PresenceData = PresenceData

Peer<TPresence>

The peer to inspect.

AgentState | null

The agent’s current state, or null.