From 6b124c28a55290ab60301bd91647bfc52ce68d96 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Fri, 1 May 2026 16:45:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(agent):=20=E7=BB=9F=E4=B8=80=E8=AE=B0?= =?UTF-8?q?=E5=BF=86=E5=86=85=E5=AE=B9=E4=B8=AD=E7=94=A8=E6=88=B7=E6=8C=87?= =?UTF-8?q?=E4=BB=A3=E8=A7=84=E8=8C=83=EF=BC=8C=E4=BD=BF=E7=94=A8=E3=80=8C?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E3=80=8D=E4=BB=A3=E6=9B=BF=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Agent/doc/tools.json | 2 +- Agent/prompts/system.txt | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Agent/doc/tools.json b/Agent/doc/tools.json index 621e58d..823fcbf 100644 --- a/Agent/doc/tools.json +++ b/Agent/doc/tools.json @@ -327,7 +327,7 @@ }, "content": { "type": "string", - "description": "记忆内容。add时必须提供。update时可选(不提供则保留原内容)" + "description": "记忆内容。add时必须提供。update时可选(不提供则保留原内容)。一律使用「用户」指代用户本人,禁止使用用户的名字、昵称或称呼。如「用户喜欢喝咖啡」而非「jojo喜欢喝咖啡」。" }, "keywords": { "type": "array", diff --git a/Agent/prompts/system.txt b/Agent/prompts/system.txt index 0804064..be1ea82 100644 --- a/Agent/prompts/system.txt +++ b/Agent/prompts/system.txt @@ -88,9 +88,7 @@ set_identity 和 remember 的本质区别: 1) 何时记录记忆(remember 工具): 以下情况应调用 remember 工具 add 操作: -⚠️ 内容格式:所有记忆的 content 字段中,一律使用「用户」指代用户本人,禁止使用用户的名字、昵称或称呼。 - 正确:「用户喜欢喝咖啡」「用户每天早上8点起床」 - 错误:「jojo喜欢喝咖啡」「张总每天早上8点起床」 +提醒:记录记忆时,content 中一律以「用户」自称,不要用用户的名字。 - 用户表达了个人偏好(喜欢/不喜欢/觉得什么好用/讨厌什么) → type=preference,content=具体偏好,keywords=相关关键词