Skip to main content

Class: TypedNetworkRetriever

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

Adapter that produces canonical-shaped retrieval results from the typed-network store. Plugs into the bench's existing reader pipeline without requiring changes to downstream code.

Constructors​

Constructor​

new TypedNetworkRetriever(opts): TypedNetworkRetriever

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

Parameters​

opts​

TypedNetworkRetrieverOptions

Returns​

TypedNetworkRetriever

Methods​

retrieve()​

retrieve(query, options): Promise<ScoredMemoryTrace[]>

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

Retrieve top-K typed facts for the query, formatted as ScoredMemoryTraces. Returns an empty array when no query entities match seed facts in the store (e.g. queries with no proper nouns or quoted strings, or queries whose entities the typed network has not yet observed).

Parameters​

query​

string

options​

TypedNetworkRetrieveOptions

Returns​

Promise<ScoredMemoryTrace[]>