Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / registerConsolidatorTriggers
Function: registerConsolidatorTriggers()
ts
function registerConsolidatorTriggers(
consolidator,
scheduler,
options): Promise<RegisterTriggersResult>;Defined in: packages/memory/src/consolidator/scheduler.ts:125
Register every cron / idle / interval trigger declared on the supplied consolidator with the scheduler. Each trigger fires consolidator.trigger(reason, scope) so the lib-mode + server paths converge on the same handler.
Turn triggers (turn:N) and event triggers (event:NAME) are skipped — the scheduler cannot count user turns autonomously, and event triggers fire from the consumer's emit path. The runtime caller is responsible for those (e.g. invoking consolidator.trigger(...) from the agent loop).
Parameters
| Parameter | Type |
|---|---|
consolidator | Consolidator |
scheduler | SchedulerLike |
options | RegisterTriggersOptions |
Returns
Promise<RegisterTriggersResult>