fix: 自动记忆优化 — 禁止自动提取规则、提高提取门槛与质量

This commit is contained in:
thzxx
2026-04-19 19:36:41 +08:00
parent 2134e1be38
commit 8973077abd
3 changed files with 39 additions and 16 deletions
+1 -1
View File
@@ -660,7 +660,7 @@ export async function runAgentLoop(
logInfo('无工具调用,ReAct Agent Loop 结束');
// 自动提取记忆(仅在对话结束后)
if (isMemoryEnabled() && messages.length >= 4) {
if (isMemoryEnabled() && messages.length >= 10) {
try {
const { extractMemoriesFromConversation } = await import('./memory-manager.js');
await extractMemoriesFromConversation(