# agent.run

Canonical URL: https://developers.iagenify.com/zh/sdk/workflows/steps/agent-run/
Language: zh

`type: "agent.run"`

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

Status: model required · tools are checked on save · 8 steps by default

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `model` | string | object | 必填 | 姓名,或 `{ main, image, video, voice, music }` 媒体作用。 |
| `tools` | object | array |  | 以对象方式撰写 [api.tools](/zh/sdk/ref/tools),由包裹序列。 |
| `storages` | string[] |  | 它可以读取哪个存储 。 |
| `inputs` | array |  | 其指示。 |
| `skills` | string[] |  | 将技能放在工作前。 |
| `subagent` | string |  | 以图书馆代理的身份运行 |
| `maxSteps · budget` | integer | 8 · — | 它的天花板。 |

## 保存时检查工具名 {#tools}

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

```javascript
{ 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,
} }
```

## 输出 {#output}

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

## 这是服务器侧介面代理器 {#not-local}

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

## 给它预算 {#budget}

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

- [代理](/zh/sdk/ref/agent): 后面的引擎
- [api.tools](/zh/sdk/ref/tools): 声明。
- [工作流步骤](/zh/sdk/workflows/steps): 全部 23 种类型。

```python
{"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,
}}
```
