Skip to content

Type Alias: AIPeerAgent()\<TPresence\>

@roomful/core


@roomful/core / AIPeerAgent

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.

TPresence extends PresenceData = PresenceData

AIPeerContext<TPresence>

void | Promise<void>