Skip to main content

Class: TypedSpreadingActivation

Defined in: packages/agentos/src/memory/retrieval/typed-network/TypedSpreadingActivation.ts:71

Spreading-activation primitive over a typed network. Constructed once per pipeline; safe to share across queries (all per-call state lives in the local activation map).

Constructors

Constructor

new TypedSpreadingActivation(options): TypedSpreadingActivation

Defined in: packages/agentos/src/memory/retrieval/typed-network/TypedSpreadingActivation.ts:75

Parameters

options

TypedSpreadingActivationOptions

Returns

TypedSpreadingActivation

Methods

spread()

spread(store, seedIds, options): Map<string, number>

Defined in: packages/agentos/src/memory/retrieval/typed-network/TypedSpreadingActivation.ts:93

Run spreading activation from a set of seed fact IDs. Returns a map from fact ID to activation level, including the seeds (at activation 1.0) and every reachable fact above the threshold.

Uses Eq. 12's max-aggregation: each step computes the candidate activation current · weight · δ · μ(kind) for every outgoing edge, then keeps the max across paths into a node.

Parameters

store

TypedNetworkStore

The typed network to traverse.

seedIds

string[]

Initial seed fact IDs (activated at 1.0).

options

SpreadOptions

maxDepth + activationThreshold.

Returns

Map<string, number>