Skip to main content

Module memory

Module memory 

Source
Expand description

Memory and learning system for the agent.

Core types (MemoryStore, MemoryItem, MemoryType, RelevanceConfig, FileMemoryStore, InMemoryStore) live in a3s-memory.

This module owns MemoryConfig, MemoryStats, AgentMemory (three-tier session memory), and MemoryContextProvider (context injection bridge).

Structs§

AgentMemory
Three-tier agent memory: working, short-term (session), and long-term (persisted).
MemoryConfig
Configuration for the agent memory system (three-tier: working/short-term/long-term)
MemoryContextProvider
Context provider that surfaces past memories as agent context.
MemoryMaintenanceCloseReport
Bounded shutdown evidence for one maintenance runtime.
MemoryMaintenanceContext
Exact runtime context passed to a host-owned maintenance job.
MemoryMaintenanceHealth
Non-sensitive snapshot for readiness and operational diagnostics.
MemoryMaintenanceJobHealth
Current health of one scheduled job.
MemoryMaintenanceOptions
Typed, session-owned memory maintenance schedules and shutdown policy.
MemoryMaintenanceOutcome
Machine-readable result of one maintenance run.
MemoryMaintenanceRuntime
Owner of every periodic task associated with one AgentMemory.
MemoryObservation
One durable-memory write as observed by a host integration.
MemoryStats
Statistics for the three-tier agent memory system
ScheduledMemoryMaintenance
A typed job plus its non-overlapping periodic schedule.
ScheduledSemanticRefresh
Explicit periodic schedule for verified semantic memory refresh.
SemanticRefreshMetrics
Bounded cumulative metrics for one semantic refresh ownership epoch.
SemanticRefreshRunMetrics
Non-sensitive work evidence for one settled scheduled semantic refresh attempt.

Enums§

MemoryMaintenanceError
Invalid configuration or ownership failure when starting maintenance.
MemoryMaintenancePhase
Lifecycle state of one owned maintenance runtime.
SemanticRefreshRunOutcome
Terminal result of one scheduled semantic refresh attempt.

Constants§

SEMANTIC_REFRESH_JOB_NAME
Reserved health name of Code’s verified semantic refresh worker.
SEMANTIC_REFRESH_RECENT_RUN_LIMIT
Maximum number of per-run semantic refresh observations retained per owner.

Traits§

MemoryMaintenanceJob
One policy-owned memory maintenance operation.
MemoryObserver
Host extension point invoked after a durable memory has been persisted.