fix: memory replace/remove 归一化匹配+最低长度回退至5,修复引号差异导致删除失败

This commit is contained in:
thzxx
2026-07-10 21:47:41 +08:00
parent e5224e4a8d
commit 0145f0cfe1
2 changed files with 15 additions and 17 deletions
+1 -1
View File
@@ -378,7 +378,7 @@ CRITICAL: For add action, you MUST include both "type" (fact/preference/rule) an
content: { type: 'string', description: '[add REQUIRED, replace] Memory text. Keep it concise (8-100 chars).' },
importance: { type: 'integer', description: '[add] Priority 1-10. Default: 5. Use 8+ for critical info.' },
tags: { type: 'array', items: { type: 'string' }, description: '[add] 2-5 keywords for search matching.' },
old_text: { type: 'string', description: '[replace, remove REQUIRED] Unique substring to identify the entry. Must be ≥8 chars for precision.' },
old_text: { type: 'string', description: '[replace, remove REQUIRED] Unique substring to identify the entry. Must be ≥5 chars. Use exact text from read_all for best results.' },
new_content: { type: 'string', description: '[replace REQUIRED] New text to replace with.' }
}
}