@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.25 → 1.9.10-beta.27
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.
package/dist/index.js
CHANGED
|
@@ -31048,11 +31048,11 @@ function buildToolGuidance(availableTools) {
|
|
|
31048
31048
|
if (hasExpand) {
|
|
31049
31049
|
lines.push(
|
|
31050
31050
|
"### Causal Graph Traversal",
|
|
31051
|
-
"When the user asks about causes, patterns, or relationships
|
|
31052
|
-
"1.
|
|
31053
|
-
|
|
31051
|
+
"When the user asks about causes, patterns, or relationships:",
|
|
31052
|
+
"1. `memory_search` for the people/events in question to get record IDs",
|
|
31053
|
+
"2. `memory_expand` with the most relevant `record_id` to walk causal edges",
|
|
31054
31054
|
"3. Follow interesting edges \u2014 use `memory_get` for full detail on connected records",
|
|
31055
|
-
"4. Use `
|
|
31055
|
+
"4. Use `get_user_card` to cross-reference identity context",
|
|
31056
31056
|
""
|
|
31057
31057
|
);
|
|
31058
31058
|
}
|
|
@@ -31100,7 +31100,7 @@ var MEMORY_EXPAND_SCHEMA = {
|
|
|
31100
31100
|
},
|
|
31101
31101
|
record_id: {
|
|
31102
31102
|
type: "string",
|
|
31103
|
-
description: "Record ID for causal graph traversal. Use
|
|
31103
|
+
description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results."
|
|
31104
31104
|
},
|
|
31105
31105
|
maxDepth: {
|
|
31106
31106
|
type: "number",
|
|
@@ -31240,7 +31240,7 @@ function createMemoryExpandTool(getClient, getSessionKey, logger = console, getS
|
|
|
31240
31240
|
return {
|
|
31241
31241
|
name: "memory_expand",
|
|
31242
31242
|
label: "Memory Expand",
|
|
31243
|
-
description: "Expand compacted summaries OR walk causal graph edges from
|
|
31243
|
+
description: "Expand compacted summaries OR walk causal graph edges from ANY record. Summary mode (summaryIds): walk the summary tree up to maxDepth levels. Graph mode (record_id): walk causal edges (why_ids/how_ids/hop_targets) from a record ID. Use exact IDs from memory_search or memory_get results \u2014 any ingested turn, memory, or summary has graph edges. After get_user_card for context, search for related people/events then expand the most relevant hit. For large expansions, spawns a sub-agent. Use memory_describe first to check if expansion is warranted.",
|
|
31244
31244
|
parameters: MEMORY_EXPAND_SCHEMA,
|
|
31245
31245
|
execute: async (_toolCallId, rawParams) => {
|
|
31246
31246
|
const params = asParams(rawParams);
|
package/dist/memory-provider.js
CHANGED
|
@@ -52,7 +52,7 @@ function buildToolGuidance(availableTools) {
|
|
|
52
52
|
}
|
|
53
53
|
// ── Causal graph traversal (when expand supports record_id) ──
|
|
54
54
|
if (hasExpand) {
|
|
55
|
-
lines.push("### Causal Graph Traversal", "When the user asks about causes, patterns, or relationships
|
|
55
|
+
lines.push("### Causal Graph Traversal", "When the user asks about causes, patterns, or relationships:", "1. `memory_search` for the people/events in question to get record IDs", "2. `memory_expand` with the most relevant `record_id` to walk causal edges", "3. Follow interesting edges — use `memory_get` for full detail on connected records", "4. Use `get_user_card` to cross-reference identity context", "");
|
|
56
56
|
}
|
|
57
57
|
lines.push("LibraVDB memory is vector-backed and retrieved through tools, not files.", "");
|
|
58
58
|
return lines;
|
|
@@ -84,7 +84,7 @@ export declare function createMemoryExpandTool(getClient: ClientGetter, getSessi
|
|
|
84
84
|
};
|
|
85
85
|
readonly record_id: {
|
|
86
86
|
readonly type: "string";
|
|
87
|
-
readonly description: "Record ID for causal graph traversal. Use
|
|
87
|
+
readonly description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results.";
|
|
88
88
|
};
|
|
89
89
|
readonly maxDepth: {
|
|
90
90
|
readonly type: "number";
|
|
@@ -33,7 +33,7 @@ const MEMORY_EXPAND_SCHEMA = {
|
|
|
33
33
|
},
|
|
34
34
|
record_id: {
|
|
35
35
|
type: "string",
|
|
36
|
-
description: "Record ID for causal graph traversal. Use
|
|
36
|
+
description: "Record ID for causal graph traversal. Use exact IDs from memory_search or memory_get results.",
|
|
37
37
|
},
|
|
38
38
|
maxDepth: {
|
|
39
39
|
type: "number",
|
|
@@ -194,11 +194,14 @@ export function createMemoryExpandTool(getClient, getSessionKey, logger = consol
|
|
|
194
194
|
return {
|
|
195
195
|
name: "memory_expand",
|
|
196
196
|
label: "Memory Expand",
|
|
197
|
-
description: "Expand compacted summaries OR walk causal graph edges from
|
|
198
|
-
"Summary mode: walk the summary tree up to maxDepth levels. " +
|
|
199
|
-
"Graph mode (
|
|
200
|
-
"from a record
|
|
201
|
-
"
|
|
197
|
+
description: "Expand compacted summaries OR walk causal graph edges from ANY record. " +
|
|
198
|
+
"Summary mode (summaryIds): walk the summary tree up to maxDepth levels. " +
|
|
199
|
+
"Graph mode (record_id): walk causal edges (why_ids/how_ids/hop_targets) " +
|
|
200
|
+
"from a record ID. Use exact IDs from memory_search or memory_get results — " +
|
|
201
|
+
"any ingested turn, memory, or summary has graph edges. " +
|
|
202
|
+
"After get_user_card for context, search for related people/events then " +
|
|
203
|
+
"expand the most relevant hit. " +
|
|
204
|
+
"For large expansions, spawns a sub-agent. " +
|
|
202
205
|
"Use memory_describe first to check if expansion is warranted.",
|
|
203
206
|
parameters: MEMORY_EXPAND_SCHEMA,
|
|
204
207
|
execute: async (_toolCallId, rawParams) => {
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "libravdb-memory",
|
|
3
3
|
"name": "LibraVDB Memory",
|
|
4
4
|
"description": "Cognitive memory engine — causal graph reasoning, predictive context, identity tracking, and hybrid vector recall with back-door adjustment scoring",
|
|
5
|
-
"version": "1.9.10-beta.
|
|
5
|
+
"version": "1.9.10-beta.27",
|
|
6
6
|
"kind": [
|
|
7
7
|
"memory",
|
|
8
8
|
"context-engine"
|