桥接

终端终端

terminals: { list, get, create, remove }

壳壳比答案长——一个Dev服务器、一个监视器。提供它们和终端工具出现;计算机上显示它们来自机器本身。

never on a phonecloud needs it suppliedlist is read, kill is exec
Using Python?

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

他们的原籍

机 机 机 机终端终端
电脑透过 storage.terminals -除非你们供应 files,取代它们
电话从来没有 工具没有被声明, 无论您通过什么工具
一个云云工作空间仅供给你们所供给的食物,
提供一组是使用的

传递终端会覆盖机器本身, 无论你在哪里。 程序可以将代理服务器放入用户能看到的服务器 。

形状

const terminals = {
  async list()                       { /* → [terminal] */ },
  async get(id)                      { /* → terminal */ },
  async create({ name, cwd, command, port }) { /* → terminal */ },
  async remove(id)                   { /* → { ok: true } */ },
};

// A terminal
{
  id, name, cwd, busy, url,
  async run(line)                    { },
  async output({ since } = {})       { /* → the lines */ },
  async kill()                       { },
  async interrupt()                  { },
}
class Terminals:
    def list(self): ...                               # → [terminal]
    def get(self, terminal_id): ...                   # → terminal
    def create(self, *, name="shell", cwd="", command=None, by="user"): ...   # → terminal
    def remove(self, terminal_id): ...                # → {"ok": True}

# A terminal: id, name, status, busy, run(line), output(since=0), kill(), interrupt()

agent = api.agents.create(runtime="local", machine=pc, model=model, terminals=Terminals())

确实 计算机自己的终端形状,所以代理工具无法显示 贝壳在运行。

一种工具中的两类

操作类别
list · output读为 - 免费
killexec — asked

阅读服务器打印时不需要快速; 停止时应该。 此类别是从参数中计算 。

特工被命令要怎么处置他们

  • 启动服务器 bash { background: true }从来没有在前景。
  • 从未分离 nohup, & 或一项工作——在用户无法阻止的地方隐藏着。
  • 开始之前先列出可能已经运行的列表 。
  • 通行证通行证通行证通行证通过 port,并让服务器在所有界面上监听,所以它报告的地址实际上是答案。
  • 告诉用户 URL.

他们生活在一个掌握一揽子计划的进程之中

终端能生存一个答案,而不是重新开始。 携带软件包的软件拥有它们, 并且重新开始时也带着它们, 这在显示它们的界面中值得一提。