Skip to main content

Module memory

Module memory 

Source

Structs§

CandidateCounts
v0.6.3.1 (P3): retrieval-stage candidate counts feeding RecallMeta.
Citation
v0.7.0 Form 4 (issue #757) — fact-provenance citation envelope.
ConfidenceSignals
v0.7.0 Form 5 (issue #758) — JSON snapshot of the signals that produced an auto-derived or calibrated confidence value.
CreateMemory
ForgetQuery
ListQuery
Memory
NamespaceCount
RecallBody
RecallMeta
v0.6.3.1 (P3): per-request observability for the recall pipeline.
RecallQuery
RecallTelemetry
v0.6.3.1 (P3): internal telemetry returned alongside recall results.
SearchQuery
SourceSpan
v0.7.0 Form 4 (issue #757) — byte-range envelope used by Memory::source_span and Citation::span.
Stats
TierCount
UpdateMemory

Enums§

ConfidenceSource
v0.7.0 Form 5 (issue #758) — typed discriminator for the provenance of a memory’s confidence value.
ConfidenceTier
v0.7.0 Gap 4 (issue #887) — derived enum partitioning the confidence real into operator-meaningful buckets so callers (especially read-side reviewers) can filter by tier instead of re-deriving thresholds at every site.
EditSource
v0.7.0 Provenance Gap 5 (issue #888) — typed edit-source discriminator gating the storage::update write-path branch.
MemoryKind
L1-1 (v0.7.0) — typed memory-kind discriminator stored in the memories.memory_kind column (schema v30).
Tier
Memory-lifecycle tier — short (6h TTL) / mid (7d TTL) / long (permanent). Drives the create-time backstop, the touch-time sliding window, the auto-promotion at 5 accesses (mid → long), the GC sweep, and the recall ranker’s per-tier bonus.

Constants§

DEFAULT_CONFIDENCE
Compiled default confidence stamped when a store surface (MCP memory_store, HTTP POST /api/v1/memories, CLI ai-memory store) receives no explicit caller value. #1591 — rows minted from this fallback carry confidence_source = ConfidenceSource::Default instead of falsely claiming caller_provided.

Functions§

default_memory_version
Default for Memory::version on rows that pre-date schema v45 (or JSON payloads from clients that haven’t learned about the column yet). Matches the SQL DEFAULT clause on the column.