你现在可以让 Claude Managed Agents 代理使用动态工作流,该功能处于测试阶段,需使用 managed-agents-2026-04-01 测试版标头。对于包含许多部分的工作,例如审阅数百份文档,代理可以编写一个工作流。工作流是一个分阶段运行多个代理并合并其结果的程序。服务器在后台将其作为工作流运行来执行。要开启动态工作流,请将代理的 multiagent 字段设置为 {"type": "multiagent_20261001", "workflows": {"type": "enabled"}}。要引导代理,请在其系统提示中告知何时开始运行。通过会话事件流上的 workflow_run.* 事件跟踪每次运行。参见工作流运行。
You can now let a Claude Managed Agents agent use dynamic workflows, in beta with the managed-agents-2026-04-01 beta header. For work with many pieces, such as reviewing hundreds of documents, the agent can write a workflow. A workflow is a program that runs many agents in phases and combines their results. The server runs it in the background as a workflow run. To turn dynamic workflows on, set the agent's multiagent field to {"type": "multiagent_20261001", "workflows": {"type": "enabled"}}. To guide the agent, tell it in its system prompt when to start a run. Follow each run through workflow_run.* events on the session's event stream. See Workflow runs.
本文内容采集自官方网站,排版和翻译可能与原页面存在差异。
阅读官方全文