工作流步骤

agent.run

type: "agent.run"

整个代理商在一步内: 它计划、 调用工具和报告。 对于工作来说, 单一的模型调用无法做 。

model requiredtools are checked on save8 steps by default
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

modelstring | object必填

姓名,或 { main, image, video, voice, music } 媒体作用。

toolsobject | array

以对象方式撰写 api.tools,由包裹序列。

storagesstring[]

它可以读取哪个存储 。

inputsarray

其指示。

skillsstring[]

将技能放在工作前。

subagentstring

以图书馆代理的身份运行

maxSteps · budgetinteger8 · —

它的天花板。

保存时检查工具名

拒绝一个未知工具, 拒绝, 没有丢弃

不经字眼跳过它, 就会留下一个没有工具的工作流程, 工具就被建立起来, 没有人告诉结果为什么是错误的。 拒绝者会说出可用的名称 。

{ id: "research", type: "agent.run", config: {
    model: "gemini-3.5-flash",
    tools: { search: api.tools.search, fetch: api.tools.fetch },
    storages: [database.id],
    inputs: [{ type: "text", content: "Find what changed in {{input.area}} and list the sources." }],
    maxSteps: 8, budget: 150,
} }
{"id": "research", "type": "agent.run", "config": {
    "model": "gemini-3.5-flash",
    "tools": ["search", "fetch"],              # built-in tools, by name
    "storages": [database.id],
    "inputs": [{"type": "text", "content": "Find what changed in {{input.area}} and list the sources."}],
    "maxSteps": 8, "budget": 150,
}}

输出

{{steps.research.output.text}} 其报告, output.usage 成本多少 所采取的步骤记录在运行记录中

这是服务器侧介面代理器

没有许可回调,也没有机器:边界是您声明的工具和您通过存储的存储。发送、发布或写入的工具 DNS 故意不列入其清单——这些 步骤,这需要批准。

给它预算

在一个预定触发点上,它比任何其他地点都重要。