Query memory traces with cognitive scoring.
Record that a memory was accessed (retrieved). Updates decay parameters via spaced repetition.
Get all traces for a scope (for consolidation pipeline).
Limitation: This primarily returns traces from the in-process cache. Traces that were persisted to the vector store in a prior process lifetime (or by another process) will only be returned if the cache is empty for this scope, in which case we fall back to querying the vector store with a zero-vector and metadata filter. The fallback is approximate (limited by topK) and does not guarantee completeness.
Optional type: MemoryTypeGet a trace by ID.
List cached traces for diagnostics and tooling.
Optional options: { Optional activeOptional type?: MemoryTypeOptional scope?: MemoryScopeOptional scope
Store a new memory trace: embed content, upsert into vector store, and record as episodic memory in the knowledge graph.