# 选项 · 桥接

Canonical URL: https://developers.iagenify.com/zh/sdk/ref/agents/options/bridges/
Language: zh

`files · shell · terminals · customTools`

四个给予引擎它没有的东西的物体:一个不是磁盘的工作空间、一个外壳、一个长寿命终端和你自己的工具。

Status: plain objects · validated at creation · they shape the tool list

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `files` | object |  | `{ list, read, write, mkdir, move, remove }` - 六个都得 |
| `shell` | object |  | `{ run(command, { timeoutMs, signal }) }` 返回 `{ stdout, stderr, exitCode }`. |
| `terminals` | object |  | `{ list, get, create, remove }`,每个终端 `run`, `output`, `kill`. |
| `customTools` | object |  | `{ name: { description, parameters, category, run } }`. |

## 需要文件时 {#required-when}

| 机 机 机 机 | 文件 文件 |
| --- | --- |
| 电脑 | 可选——机器使用自己的工作空间 |
| 电话 | **需要** |
| 一个云云工作空间 | **需要** |

缺少的桥桥 操作在创建时被拒绝 `files_required`指出缺少的东西——半个文件系统在工具需要缺失的碎片的时候失败,这是最糟糕的时机。

## 工具清单遵循这些工具清单 {#tools-follow}

- 无 无 `shell` 手机或云工作空间上的 + 否 `bash`.
- 电话 号码 号码 `terminal`永远
- 云层工作空间 `terminal` 仅使用 `terminals`.
- 供应 `terminals` 不论你在哪里 都可推翻机器的

> **无法运行的工具未被声明**
>
> 引擎没有提供打击和失败,而是把它抛在脑后,系统就会随之失去指示。

## 自定义工具与其他工具一样被允许 {#custom}

他们分为四类之一, `read`, `write`, `storage`, `exec` -和 `write` 默认情况下。 三个总是被问及的类别无法为它们提供, 所以发送、 发布或支出的任何信息都属于您自己的代码 。

## They cost tokens too {#cost}

每个自定义工具都是每转转弯的申报。 声明此运行实际上可能叫什么, 而不是您应用程序能做的 。

- [桥接](/zh/sdk/agent/bridges): 每一个细节。
- [自定义工具](/zh/sdk/agent/bridges/custom-tools): 写一个
- [工具库](/zh/sdk/ref/agents/options/tools): 内置的设置与旁边。
