Variables

MEMORY_STRATEGIES

Variable: MEMORY_STRATEGIES

const MEMORY_STRATEGIES: object

Defined in: src/memory/define.types.ts:74

How content is selected / compressed for the next LLM call.

A WINDOW strategy on an Episodic store keeps the last N messages; on Semantic / Narrative it keeps the last N facts / beats. NOT universal: the CAUSAL type accepts ONLY TOP_K — its snapshots are matched semantically against the new query, never by recency, so buildCausalPipeline throws on any other strategy kind. Mix and match the non-Causal types.

Type Declaration

BUDGET

readonly BUDGET: "budget" = 'budget'

DECAY

readonly DECAY: "decay" = 'decay'

EXTRACT

readonly EXTRACT: "extract" = 'extract'

HYBRID

readonly HYBRID: "hybrid" = 'hybrid'

SUMMARIZE

readonly SUMMARIZE: "summarize" = 'summarize'

TOP_K

readonly TOP_K: "topK" = 'topK'

WINDOW

readonly WINDOW: "window" = 'window'

On this page