Skip to main content

Interface: MemoryGraphConfig

Defined in: packages/agentos/src/memory/core/config.ts:100

Configuration for the memory graph subsystem.

The memory graph powers spreading activation (Collins & Quillian model), Hebbian co-activation learning ("neurons that fire together wire together"), conflict detection, clustering, and graph-boosted retrieval scoring.

Enabled by default when CognitiveMemoryManager is initialized. Set disabled: true to opt out entirely.

Properties

activationThreshold?

optional activationThreshold: number

Defined in: packages/agentos/src/memory/core/config.ts:115

Minimum activation to continue spreading (0-1).

Default

0.1

backend?

optional backend: "graphology" | "knowledge-graph"

Defined in: packages/agentos/src/memory/core/config.ts:109

Which graph backend to use.

Default

'knowledge-graph'

decayPerHop?

optional decayPerHop: number

Defined in: packages/agentos/src/memory/core/config.ts:113

Activation decay per hop (0-1).

Default

0.5

disabled?

optional disabled: boolean

Defined in: packages/agentos/src/memory/core/config.ts:107

Set to true to disable the memory graph entirely. When disabled, spreading activation, Hebbian co-activation, and graph-based retrieval boosting are all skipped.

Default

false

hebbianLearningRate?

optional hebbianLearningRate: number

Defined in: packages/agentos/src/memory/core/config.ts:117

Hebbian learning rate for co-activation edge strengthening (0-1).

Default

0.1

maxDepth?

optional maxDepth: number

Defined in: packages/agentos/src/memory/core/config.ts:111

Max hops for spreading activation.

Default

3