桥接

概览

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

files · shell · terminals · customToolsplain objectsno server route
Using Python?

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

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

选项选项给给给Page
files一个不是磁盘的工作空间文件 文件
shellbash 其它机器贝壳
terminals壳壳比答案活得活得活终端终端
customTools工具,除了35自定义工具

电话代理

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
});
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"],
)

需要桥梁时

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

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

工具列表跟随桥梁

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

引擎不是提供打击和失败,而是让它退出,系统随之失去指示。 模型从来不会围绕不存在的东西计划。