Builder
public static class Builder
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:215–304构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 sessionId、containerId、containerName、baseUrl、browserUrl、frontBrowserWS。
A class in io.agentscope.runtime.sandbox.manager.model.container that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.container.
方法摘要Method Summary
方法详情Method Detail
sessionId
public Builder sessionId(String sessionId)
设置会话标识。
Performs the session id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:231–234containerId
public Builder containerId(String containerId)
设置容器标识。
Performs the container id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerId | String | 容器标识(类型 `String`)。The container id. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:236–239containerName
public Builder containerName(String containerName)
设置容器名称。
Performs the container name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerName | String | 容器名称(类型 `String`)。The container name. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:241–244baseUrl
public Builder baseUrl(String baseUrl)
设置基类 URL。
Performs the base url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:246–249browserUrl
public Builder browserUrl(String browserUrl)
设置该配置项。
Performs the browser url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
browserUrl | String | browser URL(类型 `String`)。The browser url. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:251–254frontBrowserWS
public Builder frontBrowserWS(String frontBrowserWS)
设置该配置项。
Performs the front browser WS operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
frontBrowserWS | String | front Browser WS(类型 `String`)。The front browser WS. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:256–259clientBrowserWS
public Builder clientBrowserWS(String clientBrowserWS)
设置该配置项。
Performs the client browser WS operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
clientBrowserWS | String | 客户端 Browser WS(类型 `String`)。The client browser WS. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:261–264artifactsSIO
public Builder artifactsSIO(String artifactsSIO)
设置该配置项。
Performs the artifacts SIO operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
artifactsSIO | String | artifacts SIO(类型 `String`)。The artifacts SIO. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:266–269ports
public Builder ports(String[] ports)
设置该配置项。
Performs the ports operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ports | String[] | ports(类型 `String[]`)。The ports. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:271–274mountDir
public Builder mountDir(String mountDir)
设置该配置项。
Performs the mount dir operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:276–279storagePath
public Builder storagePath(String storagePath)
设置存储路径。
Performs the storage path operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storagePath | String | 存储路径(类型 `String`)。The storage path. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:281–284runtimeToken
public Builder runtimeToken(String runtimeToken)
设置运行时令牌。
Performs the runtime token operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runtimeToken | String | 运行时令牌(类型 `String`)。The runtime token. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:286–289version
public Builder version(String version)
设置版本。
Performs the version operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | String | 版本(类型 `String`)。The version. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:291–294authToken
public Builder authToken(String authToken)
设置认证令牌。
Performs the auth token operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
authToken | String | 认证令牌(类型 `String`)。The auth token. |
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:296–299build
public ContainerModel build()
构建并返回最终实例。
Creates and returns an instance.
ContainerModelio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:301–303