Interface: RetentionSweepOptions
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:15
Properties
daysFor()?
optionaldaysFor: (scopeId) =>number|undefined
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:32
A shorter period, in days, for one scope: an account's own policy. It never lengthens the agent's period.
Parameters
scopeId
string
Returns
number | undefined
memory
memory:
Memory
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:17
The store.
now()?
optionalnow: () =>number
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:36
The clock, in Unix ms. Default Date.now.
Returns
number
onChain()?
optionalonChain: <T>(scopeId,work) =>Promise<T>
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:34
Runs one scope's sweep in that subject's turn, after its writes and compiles. Unset: at once.
Type Parameters
T
T
Parameters
scopeId
string
work
() => Promise<T>
Returns
Promise<T>
retention
retention:
object
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:20
pages?
optionalpages:"delete-whole"|"rebuild"
What happens to a page when a trace it was compiled from expires: deleted whole (the default), or deleted and rebuilt by the next compile from the traces that are left.
sessions?
optionalsessions:RetentionPeriod
The period of the traces of sessions that named no user.
traces
traces:
RetentionPeriod
The period of a user's traces, and of a session's when sessions is unset.
wiki
wiki:
object
Defined in: packages/agentos/src/cognition/memory/io/retentionSweep.ts:19
The page store of one subject, by its conversation key.
storeFor()
storeFor(
scopeId):SubjectPages
Parameters
scopeId
string