diff --git a/README.md b/README.md index 87a7eb5..99ee611 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/) [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey.svg)]() -[![Branch](https://img.shields.io/badge/branch-test-orange.svg)]() +[![Branch](https://img.shields.io/badge/branch-main-orange.svg)]() --- diff --git a/README_EN.md b/README_EN.md index 95880bf..5539eab 100644 --- a/README_EN.md +++ b/README_EN.md @@ -17,7 +17,7 @@ [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/) [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey.svg)]() -[![Branch](https://img.shields.io/badge/branch-test-orange.svg)]() +[![Branch](https://img.shields.io/badge/branch-main-orange.svg)]() --- diff --git a/docs/en/api.md b/docs/en/api.md index ae15db2..680e05c 100644 --- a/docs/en/api.md +++ b/docs/en/api.md @@ -179,10 +179,8 @@ body = {} # No parameters "model": str # Model name }, "tool_limits": { - "persona_query_max": int, # Persona graph query limit "persona_update_max": int, # Persona graph update limit - "task_query_max": int, # Working memory query limit - "task_update_max": int, # Working memory update limit + "task_update_max": int, # Working memory chain update limit "memory_query_max": int, # General memory query limit "memory_update_max": int # General memory update limit } @@ -211,9 +209,7 @@ body = { "model": str # Model name (default: deepseek-chat) }, "tool_limits": { - "persona_query_max": int, # Persona query limit (≥1) "persona_update_max": int, # Persona update limit (≥1) - "task_query_max": int, # Working memory query limit (≥1) "task_update_max": int, # Working memory update limit (≥1) "memory_query_max": int, # General memory query limit (≥1) "memory_update_max": int # General memory update limit (≥1) @@ -237,8 +233,8 @@ result = client.update_settings( "model": "deepseek-chat" }, tool_limits={ - "persona_query_max": 2, - "task_query_max": 5, + "persona_update_max": 2, + "task_update_max": 5, "memory_query_max": 30 } ) diff --git a/docs/en/architecture.md b/docs/en/architecture.md index b1d3546..585ef52 100644 --- a/docs/en/architecture.md +++ b/docs/en/architecture.md @@ -153,7 +153,7 @@ def main(): - `memory_introspect` - View status - `memory_archive` - Archive memory - `memory_cleanup` - Clean data -- `context_rewrite` - Compress single-turn tool call context (experimental) +- `context_rewrite` - Compress single-turn tool call context ### Persona Tools (2) - `persona_update` - Update persona diff --git a/docs/en/prompts.md b/docs/en/prompts.md index 960ddd4..333ac19 100644 --- a/docs/en/prompts.md +++ b/docs/en/prompts.md @@ -66,6 +66,9 @@ Step 4: Update working memory chain | `memory_commit` | Write memory | | `memory_purge` | Delete memory | | `memory_introspect` | View status | +| `memory_archive` | Archive memory | +| `memory_cleanup` | Clean data | +| `context_rewrite` | Compress single-turn tool call context | #### Persona Tools diff --git a/docs/zh/api.md b/docs/zh/api.md index 79694aa..5dc3282 100644 --- a/docs/zh/api.md +++ b/docs/zh/api.md @@ -185,10 +185,8 @@ body = {} # 无参数 "model": str # 模型名称 }, "tool_limits": { - "persona_query_max": int, # 人设图查询上限 "persona_update_max": int, # 人设图修改上限 - "task_query_max": int, # 工作记忆查询上限 - "task_update_max": int, # 工作记忆修改上限 + "task_update_max": int, # 工作记忆链修改上限 "memory_query_max": int, # 一般记忆查询上限 "memory_update_max": int # 一般记忆修改上限 } @@ -217,11 +215,9 @@ body = { "model": str # 模型名称 (默认: deepseek-chat) }, "tool_limits": { - "persona_query_max": int, # 人设图查询上限 (≥1) "persona_update_max": int, # 人设图修改上限 (≥1) - "task_query_max": int, # 工作记忆查询上限 (≥1) - "task_update_max": int, # 工作记忆修改上限 (≥1) - "memory_query_max": int, # 一般记忆查询上限 (≥1) + "task_update_max": int, # 工作记忆链修改上限 (≥1) + "memory_query_max": int, # 一般记忆查询上限 (≥1) "memory_update_max": int # 一般记忆修改上限 (≥1) } } @@ -243,8 +239,8 @@ result = client.update_settings( "model": "deepseek-chat" }, tool_limits={ - "persona_query_max": 2, - "task_query_max": 5, + "persona_update_max": 2, + "task_update_max": 5, "memory_query_max": 30 } ) diff --git a/docs/zh/architecture.md b/docs/zh/architecture.md index 27a8e91..101dce1 100644 --- a/docs/zh/architecture.md +++ b/docs/zh/architecture.md @@ -153,7 +153,7 @@ def main(): - `memory_introspect` - 查看状态 - `memory_archive` - 归档记忆 - `memory_cleanup` - 清理数据 -- `context_rewrite` - 压缩单轮工具调用上下文(实验性) +- `context_rewrite` - 压缩单轮工具调用上下文 ### 人设工具 (2个) - `persona_update` - 更新人设 diff --git a/docs/zh/memory.md b/docs/zh/memory.md index 6db77c4..efdb488 100644 --- a/docs/zh/memory.md +++ b/docs/zh/memory.md @@ -25,7 +25,7 @@ TrulyMEM 的解决思路: 所有记忆必须通过以下方式读取: - `memory_recall` - 检索记忆 -### 工作记忆管理(实验性) +### 工作记忆管理 `context_rewrite` 允许 AI 在单轮对话内主动压缩工具调用的临时上下文: - 将冗长的 JSON 工具结果提炼为简洁的自然语言摘要 diff --git a/docs/zh/prompts.md b/docs/zh/prompts.md index 0a3a1ce..9b8f3da 100644 --- a/docs/zh/prompts.md +++ b/docs/zh/prompts.md @@ -66,6 +66,9 @@ system_prompt = prompt_manager.get_system_prompt() | `memory_commit` | 写入记忆 | | `memory_purge` | 删除记忆 | | `memory_introspect` | 查看状态 | +| `memory_archive` | 归档记忆 | +| `memory_cleanup` | 清理数据 | +| `context_rewrite` | 压缩单轮工具调用上下文 | #### 人设工具