Uses of Class
com.tnsai.memory.strategy.MemoryEntry
Packages that use MemoryEntry
Package
Description
Advanced memory module: vector search, BM25 text search, Reciprocal Rank
Fusion hybrid retrieval, skill memory, importance scoring, staleness
detection, and session persistence.
Memory management strategies for conversation history within token budgets.
-
Uses of MemoryEntry in com.tnsai.memory.advanced
Methods in com.tnsai.memory.advanced that return MemoryEntryModifier and TypeMethodDescriptionScoredEntry.entry()Returns the value of theentryrecord component.Methods in com.tnsai.memory.advanced with parameters of type MemoryEntryModifier and TypeMethodDescriptionvoidBM25Index.add(MemoryEntry entry) Adds an entry to the index, replacing any entry with the same id.voidVectorMemoryStore.add(MemoryEntry entry) Adds a memory entry and computes its embedding.voidVectorMemoryStore.add(MemoryEntry entry, float[] vector) Adds a memory entry with a pre-computed embedding.List<MemoryEntry[]> StalenessDetector.detectContradictions(MemoryEntry entry, Collection<MemoryEntry> candidates) Detects entries in the collection that potentially contradict the given entry.doubleMemoryImportanceScorer.score(MemoryEntry entry) Scores a memory entry without an external relevance signal (relevance=0).doubleMemoryImportanceScorer.score(MemoryEntry entry, double relevance) Scores a memory entry's importance.voidVectorIndex.upsert(String id, MemoryEntry entry, float[] vector) Inserts or replaces one entry and its embedding.Method parameters in com.tnsai.memory.advanced with type arguments of type MemoryEntryModifier and TypeMethodDescriptionList<MemoryEntry[]> StalenessDetector.detectAllContradictions(Collection<MemoryEntry> entries) Detects all contradiction pairs within a collection.List<MemoryEntry[]> StalenessDetector.detectContradictions(MemoryEntry entry, Collection<MemoryEntry> candidates) Detects entries in the collection that potentially contradict the given entry.Constructors in com.tnsai.memory.advanced with parameters of type MemoryEntryModifierConstructorDescriptionScoredEntry(MemoryEntry entry, double score) Creates an instance of aScoredEntryrecord class. -
Uses of MemoryEntry in com.tnsai.memory.strategy
Methods in com.tnsai.memory.strategy that return MemoryEntryModifier and TypeMethodDescriptionAdds a new memory at the Working tier.TieredMemoryStore.add(String id, String content, MemoryTier tier) Adds a memory at a specific tier (for loading persisted state).Adds a new memory that supersedes an existing one.MemoryEntry.withConfidence(double confidence) MemoryEntry.withProvenance(String sessionId, String agentId) Methods in com.tnsai.memory.strategy that return types with arguments of type MemoryEntryModifier and TypeMethodDescriptionRetrieves a memory by ID and records an access (reinforces strength).TieredMemoryStore.getActive(int topK) Retrieves only active (non-stale, non-superseded) memories.TieredMemoryStore.getByTier(MemoryTier tier) Retrieves all memories at a given tier, sorted by strength descending.TieredMemoryStore.getTopK(int k) Retrieves the top-K strongest memories across all tiers.TieredMemoryStore.traceProvenance(String entryId) Traces provenance: returns the version chain for an entry.