@elizaos/plugin-memory 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,16 @@
1
1
  import type { UUID } from '@elizaos/core';
2
2
  /**
3
- * Categories of long-term memory
3
+ * Categories of long-term memory based on cognitive science
4
+ *
5
+ * Following the widely accepted classification of human long-term memory:
6
+ * - EPISODIC: Personal experiences and events (what happened, when, where)
7
+ * - SEMANTIC: Facts, concepts, and knowledge (what things mean)
8
+ * - PROCEDURAL: Skills and how-to knowledge (how to do things)
4
9
  */
5
10
  export declare enum LongTermMemoryCategory {
6
- IDENTITY = "identity",// User identity, name, roles
7
- EXPERTISE = "expertise",// Domain knowledge and familiarity
8
- PROJECTS = "projects",// Past interactions and recurring topics
9
- PREFERENCES = "preferences",// User preferences for interaction style
10
- DATA_SOURCES = "data_sources",// Frequently used files, databases, APIs
11
- GOALS = "goals",// User's broader intentions and objectives
12
- CONSTRAINTS = "constraints",// User-defined rules and limitations
13
- DEFINITIONS = "definitions",// Custom terms, acronyms, glossaries
14
- BEHAVIORAL_PATTERNS = "behavioral_patterns"
11
+ EPISODIC = "episodic",// Specific events, experiences, and interactions (e.g., "User worked on bug #123 last Tuesday")
12
+ SEMANTIC = "semantic",// General facts, concepts, and knowledge (e.g., "User is a Python developer", "User prefers async/await")
13
+ PROCEDURAL = "procedural"
15
14
  }
16
15
  /**
17
16
  * Long-term memory entry
@@ -57,12 +56,15 @@ export interface SessionSummary {
57
56
  export interface MemoryConfig {
58
57
  shortTermSummarizationThreshold: number;
59
58
  shortTermRetainRecent: number;
59
+ shortTermSummarizationInterval: number;
60
60
  longTermExtractionEnabled: boolean;
61
61
  longTermVectorSearchEnabled: boolean;
62
62
  longTermConfidenceThreshold: number;
63
+ longTermExtractionThreshold: number;
63
64
  longTermExtractionInterval: number;
64
65
  summaryModelType?: string;
65
66
  summaryMaxTokens?: number;
67
+ summaryMaxNewMessages?: number;
66
68
  }
67
69
  /**
68
70
  * Memory extraction result from evaluator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-memory",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Advanced memory management plugin with short-term summarization and long-term persistent memory",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.node.cjs",