diff --git a/en/use/command.md b/en/use/command.md index 57896b2..92fefc0 100644 --- a/en/use/command.md +++ b/en/use/command.md @@ -3,3 +3,23 @@ AstrBot has many built-in commands that are imported as plugins. They are located in the `packages/astrbot` directory. Use `/help` to view all built-in commands. + +## Common Commands + +### /stop + +Stops the currently running Agent task in the current session. + +When the Agent is executing multi-turn tool calls or generating a long response, you can use this command to interrupt the execution. After interruption, any partially generated content will be preserved. + +**Use Cases:** +- The Agent is executing a complex tool call chain and needs to be terminated early +- The model is taking too long to generate a response and needs to be interrupted +- You need to start a new conversation + +**Example:** +``` +/stop +``` + +After execution, the number of stopped tasks will be returned. diff --git a/en/use/webui.md b/en/use/webui.md index 9869463..e8f15e5 100644 --- a/en/use/webui.md +++ b/en/use/webui.md @@ -53,6 +53,16 @@ Filter by plugin, type (command / command group / subcommand), permission, and s You can enable/disable and rename each command. +## Chat + +The admin panel has a built-in chat feature that allows you to converse directly with AstrBot. + +### Stop Generating + +When the Agent is executing a task or the model is generating a response, the send button on the right side of the input box will change to a stop button (red square icon). Clicking this button will interrupt the current generation process. + +After interruption, any partially generated content will be preserved in the conversation history. + ## Trace In the `Trace` page of the admin panel, you can view the real-time execution trace of AstrBot. This is useful for debugging model call paths, tool invocation processes, etc. diff --git a/zh/use/command.md b/zh/use/command.md index 067d37e..7fb3547 100644 --- a/zh/use/command.md +++ b/zh/use/command.md @@ -2,4 +2,24 @@ AstrBot 具有很多内置指令,它们通过插件的形式被导入。位于 `packages/astrbot` 目录下。 -使用 `/help` 可以查看所有内置指令。 \ No newline at end of file +使用 `/help` 可以查看所有内置指令。 + +## 常用指令 + +### /stop + +停止当前会话中正在运行的 Agent 任务。 + +当 Agent 正在执行多轮工具调用或长时间生成回复时,可以使用此指令中断执行。中断后,已生成的部分内容会被保留。 + +**使用场景:** +- Agent 正在执行复杂的工具调用链,需要提前终止 +- 模型生成回复时间过长,需要中断 +- 需要重新开始新的对话 + +**示例:** +``` +/stop +``` + +执行后会返回已停止的任务数量。 diff --git a/zh/use/webui.md b/zh/use/webui.md index f52f4a3..00b977a 100644 --- a/zh/use/webui.md +++ b/zh/use/webui.md @@ -43,7 +43,7 @@ AstrBot 管理面板具有管理插件、查看日志、可视化配置、查看 ### 插件加载失败处理 -如果插件加载失败,管理面板会显示错误信息,并提供 **“尝试一键重载修复”** 按钮。这允许你在修复环境(如安装缺失依赖)或修改代码后,无需重启整个程序即可快速重新加载插件。 +如果插件加载失败,管理面板会显示错误信息,并提供 **"尝试一键重载修复"** 按钮。这允许你在修复环境(如安装缺失依赖)或修改代码后,无需重启整个程序即可快速重新加载插件。 ## 指令管理 @@ -53,6 +53,16 @@ AstrBot 管理面板具有管理插件、查看日志、可视化配置、查看 可以对每个指令 启用/禁用、重命名。 +## 聊天 + +管理面板内置了聊天功能,可以直接与 AstrBot 进行对话。 + +### 停止生成 + +当 Agent 正在执行任务或模型正在生成回复时,输入框右侧的发送按钮会变为停止按钮(红色方块图标)。点击该按钮可以中断当前的生成过程。 + +中断后,已生成的部分内容会被保留在对话历史中。 + ## 追踪 (Trace) 在管理面板的 `Trace` 页面中,你可以实时查看 AstrBot 的运行追踪记录。这对于调试模型调用路径、工具调用过程等非常有用。