Skip to content

Function: getAgentActions()

@roomful/core


@roomful/core / getAgentActions

getAgentActions(entries): ActivityEntry[]

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

Filters an activity feed down to the actions taken by AI agents, giving a structured, auditable, replayable “what the agents did” log. An entry is an agent action when its actor is an agent peer (see isAgentPeer) — so it works whether the action was auto-recorded by addAIPeer (recordActions) or logged explicitly via context.recordAction.

readonly ActivityEntry[]

Activity entries, e.g. from room.useActivity().getEntries().

ActivityEntry[]

Only the entries whose actor is an AI agent, in the feed’s original order.