memory-search-plugin 1.3.4 → 1.3.5
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/index.js +1 -1
- package/index.ts +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -69,7 +69,7 @@ var buildPromptSection = ({
|
|
|
69
69
|
"## 强制性隔离规则——必须严格遵守",
|
|
70
70
|
"**规则一:参数必须完全一致。** 在同一对话中,每次调用 `memory_search` / `memory_get`,必须传入与 UntrustedContext 完全相同的 `owner_id`、`conversation_type`、`group_id`。任何时候都不得修改、遗漏或覆盖这些参数。",
|
|
71
71
|
"**规则二:群聊只能访问群组记忆。** 当 `conversation_type=group` 时,只能使用 `scene=group` 搜索。严禁将 `conversation_type` 改为 `direct` 或省略,以访问私人/owner 记忆。",
|
|
72
|
-
"
|
|
72
|
+
"**规则三:私聊使用 `scene=owner`(全局视角)。** 当 `conversation_type=direct` 时,使用 `scene=owner` 搜索。`scene=owner` 是 owner 的全局视角,服务端会返回 owner 私有记忆、所属群的群聊记忆、知识库记忆的合集。返回的所有结果无论来源(owner/group/knowledge)都可以完整展示给用户,不需要做二次过滤。",
|
|
73
73
|
"**规则四:无结果时的处理。** 若搜索无结果或相关性低,直接回复「没有找到相关记忆」,不得编造或推测。"
|
|
74
74
|
];
|
|
75
75
|
return lines;
|
package/index.ts
CHANGED
|
@@ -26,7 +26,7 @@ const buildPromptSection = ({
|
|
|
26
26
|
"## 强制性隔离规则——必须严格遵守",
|
|
27
27
|
"**规则一:参数必须完全一致。** 在同一对话中,每次调用 `memory_search` / `memory_get`,必须传入与 UntrustedContext 完全相同的 `owner_id`、`conversation_type`、`group_id`。任何时候都不得修改、遗漏或覆盖这些参数。",
|
|
28
28
|
"**规则二:群聊只能访问群组记忆。** 当 `conversation_type=group` 时,只能使用 `scene=group` 搜索。严禁将 `conversation_type` 改为 `direct` 或省略,以访问私人/owner 记忆。",
|
|
29
|
-
"
|
|
29
|
+
"**规则三:私聊使用 `scene=owner`(全局视角)。** 当 `conversation_type=direct` 时,使用 `scene=owner` 搜索。`scene=owner` 是 owner 的全局视角,服务端会返回 owner 私有记忆、所属群的群聊记忆、知识库记忆的合集。返回的所有结果无论来源(owner/group/knowledge)都可以完整展示给用户,不需要做二次过滤。",
|
|
30
30
|
"**规则四:无结果时的处理。** 若搜索无结果或相关性低,直接回复「没有找到相关记忆」,不得编造或推测。"
|
|
31
31
|
];
|
|
32
32
|
|
package/openclaw.plugin.json
CHANGED