MemoryManager class

Central memory orchestrator integrating episodic, semantic, and working memory into a unified retrieval and encoding interface.

Memory flow

observe(input)
  → working memory (immediate buffer)
  → episodic memory (specific event storage)

consolidateMemories()
  → episodic → semantic (generalisation)
  → working → episodic (promotion of important items)

Constructors

MemoryManager({bool enableLongTermLearning = true, int episodicCapacity = 500, int workingCapacity = 4, Duration workingMemoryAge = const Duration(minutes: 5), ConsciousnessLogger? logger})

Properties

episodic → EpisodicMemory
Episodic memory: specific events and experiences.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semantic → SemanticMemory
Semantic memory: general world knowledge and facts.
final
working → WorkingMemory
Working memory: short-term active buffer.
final

Methods

applyTemporalDecay() → void
Applies temporal decay to the episodic store.
computeContextualRelevance(String content) → double
Computes how contextually relevant a content string is, based on existing memories.
consolidateMemories() → Future<void>
Runs full memory consolidation:
getAssociation(String entity1, String entity2) → double
Returns the association strength between two entities.
getStats() → Map<String, int>
Returns a summary of memory statistics.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reinforceAssociation(String entity1, String entity2, {double strength = 0.2}) → void
Reinforces the association between two entities/concepts.
retrieveByContext(String context, {int maxResults = 15}) → List<Memory>
Retrieves memories from all stores matching the context query.
storeEpisode(Perception event, {Duration retention = const Duration(days: 7)}) → Memory
Encodes a Perception event into episodic memory.
storeRawEpisode(String content, {MemoryType type = MemoryType.episodic, double strength = 1.0, List<String>? associatedConceptIds}) → Memory
Stores an arbitrary string as an episodic memory.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited