ContainerModel
public class ContainerModel
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:22–305容器模型,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.runtime.sandbox.manager.model.container 包。核心成员包括 builder、fromMap、getSessionId、getContainerId、getContainerName、getBaseUrl。
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.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
Builder | 类class | 构建器,用于构建并配置目标实例。 A class in io.agentscope.runtime.sandbox.manager.model.container that talks to model services and returns generated or embedded output. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public ContainerModel() | 初始化 `ContainerModel` 实例。 Creates a new instance. |
方法摘要Method Summary
构造器详情Constructor Detail
ContainerModel
public ContainerModel()
初始化 ContainerModel 实例。
Creates a new instance.
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:79–80方法详情Method Detail
builder
public static Builder builder()
返回构建器实例。
Returns the builder.
Builderio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:38–40fromMap
public static ContainerModel fromMap(Map<String, Object> map)
设置来自映射。
Create ContainerModel from a Map (typically from HTTP response)
| 名称Name | 类型Type | 说明Description |
|---|---|---|
map | Map<String, Object> | 映射(类型 `Map`)。The map. |
ContainerModelio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:45–77getSessionId
public String getSessionId()
获取会话标识。
Returns the session id.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:99–101getContainerId
public String getContainerId()
获取容器标识。
Returns the container id.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:103–105getContainerName
public String getContainerName()
获取容器名称。
Returns the container name.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:107–109getBaseUrl
public String getBaseUrl()
获取基类 URL。
Returns the base url.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:111–113getBrowserUrl
public String getBrowserUrl()
获取 getBrowserUrl。
Returns the browser url.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:115–117getFrontBrowserWS
public String getFrontBrowserWS()
获取 getFrontBrowserWS。
Returns the front browser WS.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:119–121getClientBrowserWS
public String getClientBrowserWS()
获取 getClientBrowserWS。
Returns the client browser WS.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:123–125getArtifactsSIO
public String getArtifactsSIO()
获取 getArtifactsSIO。
Returns the artifacts SIO.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:127–129getPorts
public String[] getPorts()
获取 getPorts。
Returns the ports.
String[]io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:131–133getMountDir
public String getMountDir()
获取 getMountDir。
Returns the mount dir.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:135–137getStoragePath
public String getStoragePath()
获取存储路径。
Returns the storage path.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:139–141getRuntimeToken
public String getRuntimeToken()
获取运行时令牌。
Returns the runtime token.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:143–145getVersion
public String getVersion()
获取版本。
Returns the version.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:147–149setSessionId
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
sessionId | String | 会话标识(类型 `String`)。The session id. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:151–153setContainerId
public void setContainerId(String containerId)
设置容器标识。
Sets the container id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerId | String | 容器标识(类型 `String`)。The container id. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:155–157setContainerName
public void setContainerName(String containerName)
设置容器名称。
Sets the container name.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerName | String | 容器名称(类型 `String`)。The container name. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:159–161setBaseUrl
public void setBaseUrl(String baseUrl)
设置基类 URL。
Sets the base url.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
baseUrl | String | 基类 URL(类型 `String`)。The base url. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:163–165setBrowserUrl
public void setBrowserUrl(String browserUrl)
设置 setBrowserUrl。
Sets the browser url.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
browserUrl | String | browser URL(类型 `String`)。The browser url. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:167–169setFrontBrowserWS
public void setFrontBrowserWS(String frontBrowserWS)
设置 setFrontBrowserWS。
Sets the front browser WS.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
frontBrowserWS | String | front Browser WS(类型 `String`)。The front browser WS. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:171–173setClientBrowserWS
public void setClientBrowserWS(String clientBrowserWS)
设置 setClientBrowserWS。
Sets the client browser WS.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
clientBrowserWS | String | 客户端 Browser WS(类型 `String`)。The client browser WS. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:175–177setArtifactsSIO
public void setArtifactsSIO(String artifactsSIO)
设置 setArtifactsSIO。
Sets the artifacts SIO.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
artifactsSIO | String | artifacts SIO(类型 `String`)。The artifacts SIO. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:179–181setPorts
public void setPorts(String[] ports)
设置 setPorts。
Sets the ports.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
ports | String[] | ports(类型 `String[]`)。The ports. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:183–185setMountDir
public void setMountDir(String mountDir)
设置 setMountDir。
Sets the mount dir.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:187–189setStoragePath
public void setStoragePath(String storagePath)
设置存储路径。
Sets the storage path.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storagePath | String | 存储路径(类型 `String`)。The storage path. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:191–193setRuntimeToken
public void setRuntimeToken(String runtimeToken)
设置运行时令牌。
Sets the runtime token.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
runtimeToken | String | 运行时令牌(类型 `String`)。The runtime token. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:195–197setVersion
public void setVersion(String version)
设置版本。
Sets the version.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
version | String | 版本(类型 `String`)。The version. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:199–201getAuthToken
public String getAuthToken()
获取认证令牌。
Returns the auth token.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:203–205setAuthToken
public void setAuthToken(String authToken)
设置认证令牌。
Sets the auth token.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
authToken | String | 认证令牌(类型 `String`)。The auth token. |
io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:207–209toString
public String toString()
返回 toString 结果。
Returns the to string.
Stringio/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:211–213嵌套类详情Nested Class Detail
Builder
public static class Builder构建器,用于构建并配置目标实例。位于 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.