Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / executeCompaction
Function: executeCompaction()
ts
function executeCompaction(input): Promise<CompactionResult>;Defined in: packages/memory/src/context-engine/compaction/compactor.ts:83
Perform a compaction call. Returns the result envelope containing the produced summary, the dropped/preserved message slices, and the per-event metadata. Phase 12 / agent.compact() is the lifecycle owner; this function is the trim primitive.
Parameters
| Parameter | Type |
|---|---|
input | ExecuteCompactionInput |
Returns
Promise<CompactionResult>