Skip to main content

Function: typedFactToScoredTrace()

typedFactToScoredTrace(fact, activation, scope): ScoredMemoryTrace

Defined in: packages/agentos/src/memory/retrieval/typed-network/TypedNetworkRetriever.ts:160

Convert a TypedFact into a ScoredMemoryTrace for the bench's downstream reader pipeline. Renders the bank label inline in the content so the reader can distinguish typed facts from raw chunks at prompt time.

Defaults follow the HybridRetriever.factToScoredTrace pattern: encoding strength 1, retrieval score = activation level, neutral emotional context, lifecycle timestamps drawn from the fact's mention timestamp.

Parameters

fact

TypedFact

activation

number

scope

scope

MemoryScope

scopeId

string

Returns

ScoredMemoryTrace