Package com.tnsai.memory.strategy
Enum Class MemoryTier
- All Implemented Interfaces:
Serializable,Comparable<MemoryTier>,Constable
Tiers in the memory consolidation pipeline.
Memory progresses from Working (raw, short-lived) through Episodic (compressed sessions) and Semantic (facts) to Procedural (workflows). Higher tiers are more compact, more valuable, and decay slower.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCompressed session summaries, key events.Extracted workflows, recipes, how-to sequences.Consolidated facts, patterns, conventions.Raw observations, tool outputs, chat exchanges. -
Method Summary
Modifier and TypeMethodDescriptiondoubleHow fast memories in this tier lose strength (higher = faster).doubleBase retention score for this tier (higher = more resistant to eviction).static MemoryTierReturns the enum constant of this class with the specified name.static MemoryTier[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
WORKING
Raw observations, tool outputs, chat exchanges. Session-bound. -
EPISODIC
Compressed session summaries, key events. -
SEMANTIC
Consolidated facts, patterns, conventions. -
PROCEDURAL
Extracted workflows, recipes, how-to sequences.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
decayRate
public double decayRate()How fast memories in this tier lose strength (higher = faster). -
retentionBase
public double retentionBase()Base retention score for this tier (higher = more resistant to eviction).
-