Skip to content

Comments

文档:更新 Subagent 文档,新增图片路径支持及参数说明#138

Open
astrbot-doc-agent[bot] wants to merge 1 commit intov4from
docs-agent/AstrBotDevs-AstrBot-pr-5348
Open

文档:更新 Subagent 文档,新增图片路径支持及参数说明#138
astrbot-doc-agent[bot] wants to merge 1 commit intov4from
docs-agent/AstrBotDevs-AstrBot-pr-5348

Conversation

@astrbot-doc-agent
Copy link

Generated automatically by astrbot-docs-agent-server.


AI change summary:

  • 更新 zh/use/subagent.mden/use/subagent.md
  • 新增「委派工具参数」章节,详细说明主 Agent 调用委派工具时的参数配置。
  • 新增 image_urls 参数说明,支持传入公开 HTTP URL 或本地文件路径以处理多模态任务。
  • 补充 input(必填)与 background_task(可选)参数说明及使用示例。
  • i18n:中英文文档同步更新。

Please review manually before merging.


Experimental bot notice:

  • This output is generated by AstrBot-Doc-Agent for review only.
  • It does not represent the final documentation form.

@dosubot
Copy link

dosubot bot commented Feb 23, 2026

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 规则,默认全部),并直接调用工具。
 

[Accept] [Decline]

Note: You must be authenticated to accept/decline updates.

How did I do? Any feedback?  Join Discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants