memory-search-plugin 1.3.7 → 1.3.9
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 +3 -2
- package/index.ts +3 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -57,8 +57,9 @@ var buildPromptSection = ({
|
|
|
57
57
|
const hasGet = availableTools.has("memory_get");
|
|
58
58
|
if (!hasSearch && !hasGet) return [];
|
|
59
59
|
const lines = [
|
|
60
|
-
"在回答任何关于历史工作、决策、日期、人物、偏好或待办事项的问题之前:使用 `memory_search`
|
|
61
|
-
"调用 `memory_search` 或 `memory_get`
|
|
60
|
+
"在回答任何关于历史工作、决策、日期、人物、偏好或待办事项的问题之前:使用 `memory_search` 对记忆进行语义搜索,`memory_get` 对记忆进行关键字检索。如果搜索后置信度仍然较低,请说明你已经进行了检索。",
|
|
61
|
+
"调用 `memory_search` 或 `memory_get` 时,必须从 `UntrustedContext` 中原样提取 `owner_id`、`agent_id`、`group_id` 作为参数传递,不要编造、猜测、省略任何值,只使用 UntrustedContext 中实际存在的字段。",
|
|
62
|
+
"如果 `UntrustedContext`中存在 `group_id` 字段,必须提取原 `group_id` 参数,禁止省略 `group_id` 字段 ;如果 `UntrustedContext` 中不存在 `group_id` 字段,则不传该参数。"
|
|
62
63
|
];
|
|
63
64
|
return lines;
|
|
64
65
|
};
|
package/index.ts
CHANGED
|
@@ -20,8 +20,9 @@ const buildPromptSection = ({
|
|
|
20
20
|
if (!hasSearch && !hasGet) return [];
|
|
21
21
|
|
|
22
22
|
const lines = [
|
|
23
|
-
"在回答任何关于历史工作、决策、日期、人物、偏好或待办事项的问题之前:使用 `memory_search`
|
|
24
|
-
"调用 `memory_search` 或 `memory_get`
|
|
23
|
+
"在回答任何关于历史工作、决策、日期、人物、偏好或待办事项的问题之前:使用 `memory_search` 对记忆进行语义搜索,`memory_get` 对记忆进行关键字检索。如果搜索后置信度仍然较低,请说明你已经进行了检索。",
|
|
24
|
+
"调用 `memory_search` 或 `memory_get` 时,必须从 `UntrustedContext` 中原样提取 `owner_id`、`agent_id`、`group_id` 作为参数传递,不要编造、猜测、省略任何值,只使用 UntrustedContext 中实际存在的字段。",
|
|
25
|
+
"如果 `UntrustedContext`中存在 `group_id` 字段,必须提取原 `group_id` 参数,禁止省略 `group_id` 字段 ;如果 `UntrustedContext` 中不存在 `group_id` 字段,则不传该参数。"
|
|
25
26
|
];
|
|
26
27
|
|
|
27
28
|
return lines;
|
package/openclaw.plugin.json
CHANGED