AS AgentScopeAPI 手册 / API Reference

EnvironmentTypes

public final class EnvironmentTypes
源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:24–45

环境类型,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.managed 包。核心成员包括 TYPE_LOCAL、TYPE_SANDBOX、TYPE_REMOTE、TYPE_SELF_HOSTED、RESOURCE_TYPE、VALID_TYPES。

Environment template type constants, shared across planes. The control plane owns environment lifecycle; the data plane reads these types when building agents and acquiring hands leases.

字段摘要Field Summary

字段Field类型Type说明Description
TYPE_LOCAL
staticfinal
String
类型本地字段。
Local host filesystem hands.
TYPE_SANDBOX
staticfinal
String
类型沙箱字段。
Cloud-equivalent Docker hands (E2B sandbox).
TYPE_REMOTE
staticfinal
String
类型远程字段。
Distributed KV filesystem, no shell.
TYPE_SELF_HOSTED
staticfinal
String
类型自身托管字段。
Worker-owned hands via `externalSandbox` (self-hosted environment workers).
RESOURCE_TYPE
staticfinal
String
资源类型字段。
ACL resource type used for environment share checks.
VALID_TYPES
staticfinal
Set<String>
有效类型字段。
The VALID TYPES field.

字段详情Field Detail

TYPE_LOCAL

public static final String TYPE_LOCAL
staticfinal

类型本地字段。声明为 public static final String TYPE_LOCAL。

Local host filesystem hands.

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:27

TYPE_SANDBOX

public static final String TYPE_SANDBOX
staticfinal

类型沙箱字段。声明为 public static final String TYPE_SANDBOX。

Cloud-equivalent Docker hands (E2B sandbox).

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:30

TYPE_REMOTE

public static final String TYPE_REMOTE
staticfinal

类型远程字段。声明为 public static final String TYPE_REMOTE。

Distributed KV filesystem, no shell.

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:33

TYPE_SELF_HOSTED

public static final String TYPE_SELF_HOSTED
staticfinal

类型自身托管字段。声明为 public static final String TYPE_SELF_HOSTED。

Worker-owned hands via externalSandbox (self-hosted environment workers).

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:36

RESOURCE_TYPE

public static final String RESOURCE_TYPE
staticfinal

资源类型字段。声明为 public static final String RESOURCE_TYPE。

ACL resource type used for environment share checks.

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:39

VALID_TYPES

public static final Set<String> VALID_TYPES
staticfinal

有效类型字段。声明为 public static final Set VALID_TYPES。

The VALID TYPES field.

源码Source io/agentscope/builder/web/managed/EnvironmentTypes.java:41–42
基于官方固定版本源码静态生成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.