Type Alias: AIPeerAgent()\<TPresence\>
@roomful/core / AIPeerAgent
Type Alias: AIPeerAgent()<TPresence>
Section titled “Type Alias: AIPeerAgent()<TPresence>”AIPeerAgent<
TPresence> = (context) =>void|Promise<void>
Defined in: packages/core/src/ai-peer.ts:182
Decides what the AI peer does on a given tick. Called once per tickMs with a
fresh AIPeerContext. May be async (e.g. an LLM call) — overlapping runs
are skipped, so a slow agent simply ticks less often.
Type Parameters
Section titled “Type Parameters”TPresence
Section titled “TPresence”TPresence extends PresenceData = PresenceData
Parameters
Section titled “Parameters”context
Section titled “context”AIPeerContext<TPresence>
Returns
Section titled “Returns”void | Promise<void>