myagent-ai 1.15.13 → 1.15.15

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.
@@ -306,14 +306,14 @@ class MemoryAgent(BaseAgent):
306
306
 
307
307
  context.working_memory["relevant_memories"] = {
308
308
  "global": [
309
- {"content": e.content[:500], "key": e.key, "summary": e.summary}
309
+ {"content": e.content, "key": e.key, "summary": e.summary}
310
310
  for e in global_memories
311
311
  ],
312
312
  "error_patterns": [
313
- {"content": e.content[:300]} for e in errors
313
+ {"content": e.content} for e in errors
314
314
  ],
315
315
  "preferences": [
316
- {"content": e.content[:200]} for e in prefs[-5:]
316
+ {"content": e.content} for e in prefs[-5:]
317
317
  ],
318
318
  }
319
319
 
@@ -325,11 +325,11 @@ class MemoryAgent(BaseAgent):
325
325
 
326
326
  if errors:
327
327
  context_parts.append("\n## 历史错误(避免重复)")
328
- context_parts.extend(f"- {e.content[:200]}" for e in errors)
328
+ context_parts.extend(f"- {e.content}" for e in errors)
329
329
 
330
330
  if global_memories:
331
331
  context_parts.append("\n## 相关经验")
332
- context_parts.extend(f"- {e.summary or e.content[:200]}" for e in global_memories)
332
+ context_parts.extend(f"- {e.summary or e.content}" for e in global_memories)
333
333
 
334
334
  if context_parts:
335
335
  context.working_memory["memory_context_prompt"] = "\n".join(context_parts)
package/config.py CHANGED
@@ -45,7 +45,7 @@ class LLMConfig:
45
45
  class MemoryConfig:
46
46
  """记忆系统配置"""
47
47
  db_path: str = "" # SQLite 数据库路径,默认 ~/.myagent/memory.db
48
- max_session: int = 50 # 会话记忆最大对话轮数
48
+ max_session: int = 500 # 会话记忆最大对话轮数([v1.15.13] 从 50 提升到 500,避免过早删除历史)
49
49
  max_working: int = 100 # 任务进度最大条数
50
50
  auto_summarize: bool = True # 自动总结开关
51
51
  summarize_threshold: int = 20 # 触发总结的对话轮数
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "myagent-ai",
3
- "version": "1.15.13",
3
+ "version": "1.15.15",
4
4
  "description": "本地桌面端执行型AI助手 - Open Interpreter 风格 | Local Desktop Execution-Oriented AI Assistant",
5
5
  "main": "main.py",
6
6
  "bin": {