StmMemory
Defined in: packages/memory-stm/src/types.ts:45
Extends
Section titled “Extends”Properties
Section titled “Properties”accessCount
Section titled “accessCount”accessCount:
number
Defined in: packages/memory-stm/src/types.ts:60
Number of times this memory has been retrieved via findById(). Used by the consolidation policy to identify frequently-accessed memories that should be promoted to LTM. Only direct lookups are counted; list() scans do not increment this counter.
content
Section titled “content”content:
string
Defined in: packages/database/dist/types.d.ts:56
Inherited from
Section titled “Inherited from”createdAt
Section titled “createdAt”createdAt:
Date
Defined in: packages/database/dist/types.d.ts:61
Inherited from
Section titled “Inherited from”embedding
Section titled “embedding”embedding:
number[]
Defined in: packages/database/dist/types.d.ts:59
Inherited from
Section titled “Inherited from”expiresAt
Section titled “expiresAt”expiresAt:
Date
Defined in: packages/memory-stm/src/types.ts:47
Overrides
Section titled “Overrides”id:
string
Defined in: packages/database/dist/types.d.ts:51
Inherited from
Section titled “Inherited from”metadata?
Section titled “metadata?”
optionalmetadata?:Record<string,unknown> |null
Defined in: packages/database/dist/types.d.ts:57
Inherited from
Section titled “Inherited from”organizationId?
Section titled “organizationId?”
optionalorganizationId?:string
Defined in: packages/memory-stm/src/types.ts:62
Organization scope; absent for personal (non-org) memories.
Overrides
Section titled “Overrides”scope?
Section titled “scope?”
optionalscope?:string
Defined in: packages/memory-stm/src/types.ts:64
Optional namespace for agent/session/project isolation.
Overrides
Section titled “Overrides”tags:
string[]
Defined in: packages/database/dist/types.d.ts:58
Inherited from
Section titled “Inherited from”ttl:
number
Defined in: packages/memory-stm/src/types.ts:48
type:
"short-term"
Defined in: packages/memory-stm/src/types.ts:46
Overrides
Section titled “Overrides”updatedAt
Section titled “updatedAt”updatedAt:
Date
Defined in: packages/database/dist/types.d.ts:62
Inherited from
Section titled “Inherited from”userId
Section titled “userId”userId:
string
Defined in: packages/database/dist/types.d.ts:52
Inherited from
Section titled “Inherited from”version
Section titled “version”version:
number
Defined in: packages/memory-stm/src/types.ts:53
Optimistic-concurrency counter (WP2 T4/G4). Stamped 1 on create, bumped on
every update. Legacy payloads without it are treated as version 1 on read.