Function: getAgentActions()
@roomful/core / getAgentActions
Function: getAgentActions()
Section titled “Function: 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.
Parameters
Section titled “Parameters”entries
Section titled “entries”readonly ActivityEntry[]
Activity entries, e.g. from room.useActivity().getEntries().
Returns
Section titled “Returns”Only the entries whose actor is an AI agent, in the feed’s original order.