# 概览

Canonical URL: https://developers.iagenify.com/zh/sdk/agent/bridges/
Language: zh

四个赋予它自己没有的引擎能力的方法:一个文件系统、一个外壳、终端和工具。

Status: files · shell · terminals · customTools · plain objects · no server route

引擎在您过程中运行, 以便您能够达到的, 都可以达到的, 可以通过您通过的物体达到。 手机的浏览器存储器、 容器、 桌面应用程序 API:它不需要任何东西 在我们这边。

| 选项选项 | 给给给 | Page |
| --- | --- | --- |
| `files` | 一个不是磁盘的工作空间 | [文件 文件](/zh/sdk/agent/bridges/files) |
| `shell` | `bash` 其它机器 | [贝壳](/zh/sdk/agent/bridges/shell) |
| `terminals` | 壳壳比答案活得活得活 | [终端终端](/zh/sdk/agent/bridges/terminals) |
| `customTools` | 工具,除了35 | [自定义工具](/zh/sdk/agent/bridges/custom-tools) |

## 电话代理 {#example}

```javascript
const phone = await api.storage.device({ deviceId });

const agent = api.agents.create({
  runtime: "local",
  machine: phone,
  model: "gemini-3.5-flash",
  files: phoneBridge(),          // its browser storage, reached from your page
  shell: phoneShell(),           // a sandboxed shell in the page
});
```

## 需要桥梁时 {#required}

| 机 机 机 机 | 文件 文件 | 否则 |
| --- | --- | --- |
| A. 计算机(`filesystem`) | 可选 | 机器使用自己的工作空间 |
| 电话 | **需要** | `files_required` 创建时 |
| 一个云云工作空间 | **需要** | `files_required` 创建时 |

拒绝者称六次行动, 以及其中哪些行动失踪, 所以半笔桥无法建立, 而不是在跑步中。

## 工具列表跟随桥梁 {#tools-follow}

- 无 无 `shell` 手机或云工作空间上的 + 否 `bash`没有什么能运行它。
- 电话 号码 号码 `terminal`永远
- 云层工作空间 `terminal` 只有当你们供给的时候, `terminals`.
- 电脑都是 机器本身的电脑

> **无法运行的工具未被声明**
>
> 引擎不是提供打击和失败,而是让它退出,系统随之失去指示。 模型从来不会围绕不存在的东西计划。

- [文件 文件](/zh/sdk/agent/bridges/files): 六个行动
- [自定义工具](/zh/sdk/agent/bridges/custom-tools): 你自己的工具,有类别。

```python
phone = api.storage.device(device_id=device_id)

agent = api.agents.create(
    runtime="local",
    machine=phone,
    model="gemini-3.5-flash",
    files=PhoneBridge(),          # its browser storage, reached from your page
    # The Python engine has no shell bridge: leave "bash" out of a phone's tools
    tools=["read", "list", "glob", "grep", "write", "edit", "move", "delete"],
)
```
