Function: guardMemoryProvider()
guardMemoryProvider(
provider,ledger):AgentMemoryProvider
Defined in: packages/agentos/src/cognition/memory/suppression/guardMemoryProvider.ts:21
A memory provider whose observe and getContext ask the ledger first: for a forgotten subject observe files
nothing (one memory.write_refused line) and getContext answers null. The provider's own store is its own: a
deletion names it as not reached.
A call with no hook context names no subject and goes to the provider as it is.
Parameters
provider
The host's provider.
ledger
Pick<ForgottenLedger, "isForgotten">
The ledger of the store the host's deletions write to.
Returns
A provider with the same hooks the given one has.