AS AgentScopeAPI 手册 / API Reference
运行时与部署Runtime & deployment · 单元Unit 11

运行时与沙箱:把智能体安全地跑起来Runtime and sandboxes: run agents safely

运行时负责服务化、调度与部署,沙箱负责隔离执行。学完本单元,你能设计无状态服务、选择隔离后端,并建立超时、灰度与回滚机制。Runtime handles serving, scheduling and deployment; sandboxes isolate execution. After this unit you can design stateless services, choose isolation backends and add timeouts, canaries and rollback.

10 道题questions 5 张概念卡concept cards 4 个相关事故related incidents

学习目标Learning goals

  • 选择 Local、Docker、E2B、Daytona、K8s 等工作区后端Choose Local, Docker, E2B, Daytona or K8s workspaces
  • 把智能体进程设计为无状态服务Design agent processes as stateless services
  • 为工具执行设置隔离、超时与资源上限Set isolation, timeouts and resource limits for tool execution

概念闪卡Concept cards

点击卡片翻面查看解释。Click a card to flip it and reveal the explanation.

关键 APIKey APIs

点击进入对应的 Python 或 Java 参考页。Open the exact Python or Java reference for each type.

问题巩固Check yourself

完成 10 道题;答错会自动进入错题本。Answer all ten questions. Wrong answers are added to your wrong-answer book automatically.

01Python 工作区的抽象基类是?What is the Python workspace base class?
02在 Docker 容器中隔离执行的工作区是?Which workspace isolates execution in a Docker container?
03下列哪组属于远程/集群沙箱后端?Which group contains remote or cluster sandbox backends?
04Java 官方沙箱扩展构件包括?Which official Java sandbox extension artifacts exist?
05智能体服务水平扩容的前提是?What is required for horizontal scaling of agent services?
06控制面与数据面应该?How should control and data planes be arranged?
07上线最小安全配置包括?What is the minimum safe release configuration?
08每个请求应该具备什么?What should every request have?
09工作区初始化通常调用?How is a workspace initialized?
10工作区生命周期结束时应调用?What should be called at the end of a workspace lifecycle?

接着看的生产事故Production incidents to read next

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.