Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/executor / memoryEffectLedger

Function: memoryEffectLedger()

ts
function memoryEffectLedger(): ToolEffectLedger & {
  entries: readonly ToolEffectRecord[];
  intents: readonly ToolEffectIntent[];
};

Defined in: packages/executor/src/spi.ts:124

An in-memory ledger for tests and single-process hosts. It implements the two-phase capability: intents() exposes the pre-dispatch rows, entries() the outcomes, exactly as before.

Returns

ToolEffectLedger & { entries: readonly ToolEffectRecord[]; intents: readonly ToolEffectIntent[]; }