@easynet/agent-memory 1.0.47 → 1.0.48

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.
Files changed (2) hide show
  1. package/README.md +58 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -46,3 +46,61 @@ const result = await memory.recall({
46
46
 
47
47
  console.log(result.injectedText);
48
48
  ```
49
+
50
+ ### YAML config
51
+
52
+ Example `config/memory.yaml`:
53
+
54
+ ```yaml
55
+ apiVersion: easynet.world/v1
56
+ kind: MemoryConfig
57
+ metadata:
58
+ name: agent-memory-default
59
+ spec:
60
+ memory:
61
+ thread:
62
+ store:
63
+ type: in_memory
64
+ allowWrite: true
65
+ maxItems: 20
66
+ sessionCompaction:
67
+ enabled: true
68
+ maxTokens: 3000
69
+ keepRecentTurns: 12
70
+ summaryKey: __session_summary__
71
+ checkEveryTurns: 3
72
+
73
+ cross_thread:
74
+ store:
75
+ type: in_memory
76
+ allowWrite: true
77
+ maxItems: 20
78
+
79
+ knowledge:
80
+ store:
81
+ type: in_memory
82
+ allowWrite: true
83
+ maxItems: 20
84
+
85
+ observability:
86
+ trace: false
87
+
88
+ privacy:
89
+ forbiddenMetadataKeys:
90
+ - password
91
+ - api_key
92
+ - secret
93
+ - token
94
+ ```
95
+
96
+ Explanation:
97
+
98
+ - `spec.memory.thread`: short-term conversational memory.
99
+ - `spec.memory.cross_thread`: long-term user or session memory across conversations.
100
+ - `spec.memory.knowledge`: knowledge storage for reusable facts and documents.
101
+ - `store.type`: backend type, such as `in_memory`.
102
+ - `allowWrite`: whether this memory scope can accept writes.
103
+ - `maxItems`: maximum number of recalled items kept per scope.
104
+ - `sessionCompaction`: optional summarization of long thread history.
105
+ - `observability.trace`: enable recall tracing for debugging.
106
+ - `privacy.forbiddenMetadataKeys`: metadata keys that should be stripped before storage.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easynet/agent-memory",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
4
4
  "description": "Unified memory layer for LangChain / LangGraph / DeepAgents",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",