AS AgentScopeAPI 手册 / API Reference

BuilderE2bProperties

@ConfigurationProperties(prefix = "builder.e2b") public class BuilderE2bProperties
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:25–104

构建器 E 2 b 属性,承载智能体的部署、调度与服务化运行。位于 io.agentscope.builder.web.config 包。核心成员包括 getApiKey、setApiKey、getTemplateId、setTemplateId、getWorkspaceRoot、setWorkspaceRoot。

Global defaults for Managed Environment type=sandbox (E2B cloud). Per-environment config overrides these values. Set BUILDER_E2B_API_KEY or E2B_API_KEY when not embedding the key in environment config.

方法摘要Method Summary

方法Method说明Description
public String getApiKey()
获取API 键。
Returns the api key.
public void setApiKey(String apiKey)
设置API 键。
Sets the api key.
public String getTemplateId()
获取模板标识。
Returns the template id.
public void setTemplateId(String templateId)
设置模板标识。
Sets the template id.
public String getWorkspaceRoot()
获取工作区根。
Returns the workspace root.
public void setWorkspaceRoot(String workspaceRoot)
设置工作区根。
Sets the workspace root.
public int getSandboxTimeoutSeconds()
获取沙箱超时秒。
Returns the sandbox timeout seconds.
public void setSandboxTimeoutSeconds(int sandboxTimeoutSeconds)
设置沙箱超时秒。
Sets the sandbox timeout seconds.
public String getApiBaseUrl()
获取API 基类 URL。
Returns the api base url.
public void setApiBaseUrl(String apiBaseUrl)
设置API 基类 URL。
Sets the api base url.
public String getDomain()
获取 `getDomain`。
Returns the domain.
public void setDomain(String domain)
设置 `setDomain`。
Sets the domain.
public String getPersistenceMode()
获取持久化模式。
Returns the persistence mode.
public void setPersistenceMode(String persistenceMode)
设置持久化模式。
Sets the persistence mode.

方法详情Method Detail

getApiKey

public String getApiKey()

获取API 键。

Returns the api key.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:49–51

setApiKey

public void setApiKey(String apiKey)

设置API 键。

Sets the api key.

参数Parameters
名称Name类型Type说明Description
apiKeyStringAPI 键(类型 `String`)。The api key.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:53–55

getTemplateId

public String getTemplateId()

获取模板标识。

Returns the template id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:57–59

setTemplateId

public void setTemplateId(String templateId)

设置模板标识。

Sets the template id.

参数Parameters
名称Name类型Type说明Description
templateIdString模板标识(类型 `String`)。The template id.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:61–63

getWorkspaceRoot

public String getWorkspaceRoot()

获取工作区根。

Returns the workspace root.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:65–67

setWorkspaceRoot

public void setWorkspaceRoot(String workspaceRoot)

设置工作区根。

Sets the workspace root.

参数Parameters
名称Name类型Type说明Description
workspaceRootString工作区根(类型 `String`)。The workspace root.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:69–71

getSandboxTimeoutSeconds

public int getSandboxTimeoutSeconds()

获取沙箱超时秒。

Returns the sandbox timeout seconds.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:73–75

setSandboxTimeoutSeconds

public void setSandboxTimeoutSeconds(int sandboxTimeoutSeconds)

设置沙箱超时秒。

Sets the sandbox timeout seconds.

参数Parameters
名称Name类型Type说明Description
sandboxTimeoutSecondsint沙箱超时秒(类型 `int`)。The sandbox timeout seconds.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:77–79

getApiBaseUrl

public String getApiBaseUrl()

获取API 基类 URL。

Returns the api base url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:81–83

setApiBaseUrl

public void setApiBaseUrl(String apiBaseUrl)

设置API 基类 URL。

Sets the api base url.

参数Parameters
名称Name类型Type说明Description
apiBaseUrlStringAPI 基类 URL(类型 `String`)。The api base url.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:85–87

getDomain

public String getDomain()

获取 getDomain。

Returns the domain.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:89–91

setDomain

public void setDomain(String domain)

设置 setDomain。

Sets the domain.

参数Parameters
名称Name类型Type说明Description
domainStringdomain(类型 `String`)。The domain.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:93–95

getPersistenceMode

public String getPersistenceMode()

获取持久化模式。

Returns the persistence mode.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:97–99

setPersistenceMode

public void setPersistenceMode(String persistenceMode)

设置持久化模式。

Sets the persistence mode.

参数Parameters
名称Name类型Type说明Description
persistenceModeString持久化模式(类型 `String`)。The persistence mode.
源码Source io/agentscope/builder/web/config/BuilderE2bProperties.java:101–103
基于官方固定版本源码静态生成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.