memoryRetrievalBundle()
Build a graph-visible memory retrieval bundle from explicit fragment/query deps.
Invalid fragments and ranking status are emitted as ordinary DATA facts. The bundle never owns storage restore or hidden mutation; callers that need persistence compose D161 collection/storage sidecars outside this pattern.
Import
Section titled “Import”import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";Signature
Section titled “Signature”function memoryRetrievalBundle( graph: Graph, opts: MemoryRetrievalBundleOptions,): MemoryRetrievalBundle<T>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
graph | Graph | Graph that owns the created nodes or projector. |
opts | MemoryRetrievalBundleOptions | Options that configure the helper. |
Returns
Section titled “Returns”A bundle of graph-visible nodes for the recipe.
Example
Section titled “Example”import { memoryRetrievalBundle } from "@graphrefly/ts/patterns";Source
Section titled “Source”packages/ts/src/patterns/semantic-memory-graph.ts