Skip to Content
Anuma SDKReactInternalInterfacesCreateDecaySweeperOptions

CreateDecaySweeperOptions

Defined in: src/lib/memory/decayWorker.ts:71 

Properties

classifier?

optional classifier: DecayClassifier

Defined in: src/lib/memory/decayWorker.ts:88 

PR5 seam. When provided, borderline candidates’ rule verdict is passed through it. Gate on key availability (it may decrypt content). Default undefined. Egress is bounded — see maxClassifierCallsPerSweep.


maxClassifierCallsPerSweep?

optional maxClassifierCallsPerSweep: number

Defined in: src/lib/memory/decayWorker.ts:97 

PR5 — hard ceiling on classifier invocations (and thus decrypted-content portal egress) per sweep. Once hit, the remaining borderline rows fall back to the rule verdict for that sweep (no call). Prevents a large vault from firing hundreds of sequential content-bearing calls in one sweep. Default DEFAULT_MAX_CLASSIFIER_CALLS_PER_SWEEP (20). Cache hits (a row already classified at its current updated_at) do NOT count against this.


now?

optional now: NowSource

Defined in: src/lib/memory/decayWorker.ts:78 

Reference “now”. A number is fixed (deterministic tests); a function is re-evaluated per sweep (long-lived interval usage). Default Date.now.


onError()?

optional onError: (error: Error) => void

Defined in: src/lib/memory/decayWorker.ts:101 

Diagnostic — fires on an unexpected sweep-level error.

Parameters

ParameterType

error

Error

Returns

void


onSwept()?

optional onSwept: (result: DecaySweepResult) => void

Defined in: src/lib/memory/decayWorker.ts:99 

Fires once after each sweep with the transition counts (UI).

Parameters

ParameterType

result

DecaySweepResult

Returns

void


policy?

optional policy: Partial<DecayPolicy>

Defined in: src/lib/memory/decayWorker.ts:80 

Partial policy overriding the per-type TTL defaults. Omit for defaults.


profile?

optional profile: MemoryAppProfile

Defined in: src/lib/memory/decayWorker.ts:82 

App profile whose ttlByType overrides the default TTLs; entries in policy.ttlByType win.


vaultCtx

vaultCtx: VaultMemoryOperationsContext

Defined in: src/lib/memory/decayWorker.ts:73 

Vault write context — the same one recall/retain use.

Last updated on