feat(agent): add explicit active-turn steering

This commit is contained in:
AaronZ345
2026-07-19 16:03:07 +08:00
parent 0c76d851cb
commit c4e5d11da9
21 changed files with 753 additions and 5 deletions

View File

@@ -95,6 +95,7 @@ description: 将 CowAgent 接入 Telegram Bot
| `/knowledge` | 知识库管理(`/knowledge list` / `on` / `off` |
| `/config` | 查看当前配置 |
| `/cancel` | 中止当前正在运行的 Agent 任务 |
| `/steer` | 引导当前正在运行的 Agent 任务(`/steer <指令>` |
| `/logs` | 查看最近日志 |
| `/version` | 查看版本 |

View File

@@ -47,6 +47,16 @@ Session: 12 messages | 8 skills loaded
/cancel
```
## steer
在不中止任务的情况下,引导当前会话里正在运行的 Agent。指令会在下一个安全检查点注入已经开始的工具可以执行完尚未开始的工具会跳过。若当前没有运行中的任务`/steer` 不会新建任务,也不会进入队列。所有聊天渠道均可使用。
```text
/steer 先处理失败的测试
```
Web 控制台在回复进行中会显示“引导当前任务”按钮。普通消息仍按原有方式进入会话队列。
## config
查看或修改运行时配置。修改后立即生效,无需重启服务。

View File

@@ -62,6 +62,7 @@ Others:
| `/help` | 显示命令帮助 |
| `/status` | 查看服务状态和配置 |
| `/cancel` | 中止当前正在运行的 Agent 任务 |
| `/steer <指令>` | 引导当前正在运行的 Agent 任务,不新建排队回合 |
| `/config` | 查看或修改运行时配置 |
| `/skill` | 管理技能(安装、卸载、启用、禁用等) |
| `/memory dream [N]` | 手动触发记忆蒸馏(默认 3 天,最大 30 |