Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/memory / / CompactionTriggerConfig

Interface: CompactionTriggerConfig

Defined in: packages/memory/src/context-engine/compaction/types.ts:76

Built-in trigger configuration. The auto-trigger fires when the counted message-buffer tokens cross the threshold; manual and pre-step trigger sources bypass evaluation entirely.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
minReclaimTokens?readonlynumberSOTA-4 reclaim-floor: defer a compaction whose predicted reclaim - the older, compactable portion of the buffer (everything but the preserved recent turns) - is below this many tokens. Prevents compact-thrash at the threshold (paying a summarizer call to reclaim a handful of tokens). Opt-in; unset / 0 ⇒ no floor (current behaviour).packages/memory/src/context-engine/compaction/types.ts:86
thresholdRatio?readonlynumber-packages/memory/src/context-engine/compaction/types.ts:78
thresholdTokens?readonlynumber-packages/memory/src/context-engine/compaction/types.ts:77