docs: sync documentation with source code
- Fix branch badge: test -> main in README files - Update tool_limits config: remove non-existent persona_query_max and task_query_max fields - Complete memory tools list: add memory_archive, memory_cleanup, context_rewrite - Remove 'experimental' labels from context_rewrite feature
This commit is contained in:
@ -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
|
||||
}
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
)
|
||||
|
||||
@ -153,7 +153,7 @@ def main():
|
||||
- `memory_introspect` - 查看状态
|
||||
- `memory_archive` - 归档记忆
|
||||
- `memory_cleanup` - 清理数据
|
||||
- `context_rewrite` - 压缩单轮工具调用上下文(实验性)
|
||||
- `context_rewrite` - 压缩单轮工具调用上下文
|
||||
|
||||
### 人设工具 (2个)
|
||||
- `persona_update` - 更新人设
|
||||
|
||||
@ -25,7 +25,7 @@ TrulyMEM 的解决思路:
|
||||
所有记忆必须通过以下方式读取:
|
||||
- `memory_recall` - 检索记忆
|
||||
|
||||
### 工作记忆管理(实验性)
|
||||
### 工作记忆管理
|
||||
|
||||
`context_rewrite` 允许 AI 在单轮对话内主动压缩工具调用的临时上下文:
|
||||
- 将冗长的 JSON 工具结果提炼为简洁的自然语言摘要
|
||||
|
||||
@ -66,6 +66,9 @@ system_prompt = prompt_manager.get_system_prompt()
|
||||
| `memory_commit` | 写入记忆 |
|
||||
| `memory_purge` | 删除记忆 |
|
||||
| `memory_introspect` | 查看状态 |
|
||||
| `memory_archive` | 归档记忆 |
|
||||
| `memory_cleanup` | 清理数据 |
|
||||
| `context_rewrite` | 压缩单轮工具调用上下文 |
|
||||
|
||||
#### 人设工具
|
||||
|
||||
|
||||
Reference in New Issue
Block a user