Open
Conversation
5 tasks
|
Related Documentation 1 document(s) may need updating based on files changed in this PR: AstrBotTeam's Space pr4697的改动View Suggested Changes@@ -11,6 +11,8 @@
- `input`: 转交给子代理的输入内容,应为清晰简洁的请求或任务描述。
- `image_urls`(可选,[PR #5348](https://github.com/AstrBotDevs/AstrBot/pull/5348)): 字符串数组,包含图片源(公开 HTTP URL 或本地文件路径),用作多模态任务(如视频生成)的参考图片。
- `background_task`: 若设置为 `true`,任务将以后台模式异步执行,主代理会立即返回任务 ID,任务完成后通过后台任务唤醒机制通知用户结果。适用于长时间或非紧急任务。
+
+> **参考文档**: 关于委派工具参数的完整说明,请参阅官方 SubAgent 文档([中文版](https://docs.astrbot.app/zh/use/subagent.html#委派工具参数) / [English](https://docs.astrbot.app/en/use/subagent.html#delegation-tool-parameters)),该文档已在 [PR #138](https://github.com/AstrBotDevs/AstrBot-docs/pull/138) 中完成更新。
任务流转支持同步和异步两种模式:
- 同步模式(默认):主代理等待子代理完成任务后返回结果。
@@ -34,11 +36,13 @@
SubAgent 的定义与 Persona 配置一致,需在配置文件中指定 tools、skills、name、description 等。
transfer_to_* 工具现支持以下参数:
-- `input`:转交给子代理的任务输入
+- `input`:转交给子代理的任务输入(必填)
- `image_urls`(可选):图片 URL 或本地路径数组,用于多模态任务
- `background_task`:设置任务执行模式
- 若为 `true`,任务将以后台模式异步执行,主代理立即返回任务 ID,完成后通过后台任务唤醒机制通知用户
- 若未设置或为 `false`,则为同步模式,主代理等待子代理完成任务
+
+更详细的参数说明和使用示例,请参阅官方 SubAgent 文档的[委派工具参数](https://docs.astrbot.app/zh/use/subagent.html#委派工具参数)章节。
主代理在未启用 SubAgent 编排时,可直接挂载自身工具集(按 persona 规则,默认全部),并直接调用工具。
Note: You must be authenticated to accept/decline updates. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generated automatically by astrbot-docs-agent-server.
AI change summary:
zh/use/subagent.md与en/use/subagent.md。image_urls参数说明,支持传入公开 HTTP URL 或本地文件路径以处理多模态任务。input(必填)与background_task(可选)参数说明及使用示例。Please review manually before merging.
Experimental bot notice: