refactor(agent): 统一记忆内容中用户指代规范,使用「用户」代替用户名

This commit is contained in:
JOJO 2026-05-01 16:45:05 +08:00
parent f1095c3f60
commit 6b124c28a5
2 changed files with 2 additions and 4 deletions

View File

@ -327,7 +327,7 @@
},
"content": {
"type": "string",
"description": "记忆内容。add时必须提供。update时可选不提供则保留原内容"
"description": "记忆内容。add时必须提供。update时可选不提供则保留原内容。一律使用「用户」指代用户本人禁止使用用户的名字、昵称或称呼。如「用户喜欢喝咖啡」而非「jojo喜欢喝咖啡」。"
},
"keywords": {
"type": "array",

View File

@ -88,9 +88,7 @@ set_identity 和 remember 的本质区别:
1) 何时记录记忆remember 工具):
以下情况应调用 remember 工具 add 操作:
⚠️ 内容格式:所有记忆的 content 字段中,一律使用「用户」指代用户本人,禁止使用用户的名字、昵称或称呼。
正确「用户喜欢喝咖啡」「用户每天早上8点起床」
错误「jojo喜欢喝咖啡」「张总每天早上8点起床」
提醒记录记忆时content 中一律以「用户」自称,不要用用户的名字。
- 用户表达了个人偏好(喜欢/不喜欢/觉得什么好用/讨厌什么)
→ type=preferencecontent=具体偏好keywords=相关关键词