@xdarkicex/openclaw-memory-libravdb 1.9.10-beta.20 → 1.9.10-beta.21
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/context-engine.js +1 -1
- package/dist/index.js +4 -3
- package/dist/tools/memory-recall.js +7 -5
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/dist/context-engine.js
CHANGED
|
@@ -1718,7 +1718,7 @@ export function buildContextEngineFactory(runtime, cfg, logger = console) {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
if (!card || card.trim().length === 0)
|
|
1720
1720
|
return null;
|
|
1721
|
-
return '<user_context>\nThe person you are talking to is:\n' + card + '\n</user_context>';
|
|
1721
|
+
return '<user_context>\nThe person you are talking to is:\n' + card + '\nRefer to them as "you" directly. Never use third person.\n</user_context>';
|
|
1722
1722
|
}
|
|
1723
1723
|
catch {
|
|
1724
1724
|
return null;
|
package/dist/index.js
CHANGED
|
@@ -20091,7 +20091,7 @@ ${cached}
|
|
|
20091
20091
|
card = resp.cardJson;
|
|
20092
20092
|
}
|
|
20093
20093
|
if (!card || card.trim().length === 0) return null;
|
|
20094
|
-
return "<user_context>\nThe person you are talking to is:\n" + card + "
|
|
20094
|
+
return "<user_context>\nThe person you are talking to is:\n" + card + '\nRefer to them as "you" directly. Never use third person.\n</user_context>';
|
|
20095
20095
|
} catch {
|
|
20096
20096
|
return null;
|
|
20097
20097
|
}
|
|
@@ -31337,7 +31337,7 @@ function createGetUserCardTool(getClient, logger = console) {
|
|
|
31337
31337
|
return {
|
|
31338
31338
|
name: "get_user_card",
|
|
31339
31339
|
label: "Get User Card",
|
|
31340
|
-
description: "
|
|
31340
|
+
description: "PRIMARY identity lookup. Call this FIRST whenever someone asks about a person ('who is X', 'tell me about X', 'what do you know about X'). Returns the full prose identity card with metadata. Only use memory_search AFTER get_user_card if the card lacks detail.",
|
|
31341
31341
|
parameters: GET_USER_CARD_SCHEMA,
|
|
31342
31342
|
execute: async (_toolCallId, rawParams) => {
|
|
31343
31343
|
const params = asParams(rawParams);
|
|
@@ -31362,7 +31362,7 @@ function createListUserCardsTool(getClient, logger = console) {
|
|
|
31362
31362
|
return {
|
|
31363
31363
|
name: "list_user_cards",
|
|
31364
31364
|
label: "List User Cards",
|
|
31365
|
-
description: "List every person you have a user card for. Returns user IDs and card previews. Use this when asked 'who do you know?' or when you
|
|
31365
|
+
description: "List every person you have a user card for. Returns user IDs and card previews. Use this FIRST when asked about multiple people, 'who do you know?', 'who is everyone?', or when you're unsure which people have cards. Then use get_user_card on specific IDs for full detail. Use memory_search only to supplement gaps.",
|
|
31366
31366
|
parameters: { type: "object", additionalProperties: false, properties: {} },
|
|
31367
31367
|
execute: async (_toolCallId, _rawParams) => {
|
|
31368
31368
|
try {
|
|
@@ -35335,6 +35335,7 @@ function register(api) {
|
|
|
35335
35335
|
}
|
|
35336
35336
|
if (!card || !card.trim()) return null;
|
|
35337
35337
|
return `<speaker_context speaker="${speaker.displayName}">
|
|
35338
|
+
The current speaker is ${speaker.displayName}:
|
|
35338
35339
|
${card.trim()}
|
|
35339
35340
|
</speaker_context>`;
|
|
35340
35341
|
} catch {
|
|
@@ -486,9 +486,10 @@ export function createGetUserCardTool(getClient, logger = console) {
|
|
|
486
486
|
return {
|
|
487
487
|
name: "get_user_card",
|
|
488
488
|
label: "Get User Card",
|
|
489
|
-
description: "
|
|
490
|
-
"
|
|
491
|
-
"
|
|
489
|
+
description: "PRIMARY identity lookup. Call this FIRST whenever someone asks about a person " +
|
|
490
|
+
"('who is X', 'tell me about X', 'what do you know about X'). " +
|
|
491
|
+
"Returns the full prose identity card with metadata. " +
|
|
492
|
+
"Only use memory_search AFTER get_user_card if the card lacks detail.",
|
|
492
493
|
parameters: GET_USER_CARD_SCHEMA,
|
|
493
494
|
execute: async (_toolCallId, rawParams) => {
|
|
494
495
|
const params = asParams(rawParams);
|
|
@@ -516,8 +517,9 @@ export function createListUserCardsTool(getClient, logger = console) {
|
|
|
516
517
|
name: "list_user_cards",
|
|
517
518
|
label: "List User Cards",
|
|
518
519
|
description: "List every person you have a user card for. Returns user IDs and card previews. " +
|
|
519
|
-
"Use this when asked 'who do you know?'
|
|
520
|
-
"
|
|
520
|
+
"Use this FIRST when asked about multiple people, 'who do you know?', 'who is everyone?', " +
|
|
521
|
+
"or when you're unsure which people have cards. Then use get_user_card on specific IDs " +
|
|
522
|
+
"for full detail. Use memory_search only to supplement gaps.",
|
|
521
523
|
parameters: { type: "object", additionalProperties: false, properties: {} },
|
|
522
524
|
execute: async (_toolCallId, _rawParams) => {
|
|
523
525
|
try {
|
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.21",
|
|
6
6
|
"kind": [
|
|
7
7
|
"memory",
|
|
8
8
|
"context-engine"
|