Skip to main content

Function: typedFactToScoredTrace()

typedFactToScoredTrace(fact, activation, scope): ScoredMemoryTrace

Defined in: packages/agentos/src/cognition/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 pattern of HybridRetriever's private factToScoredTrace method: 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