AS AgentScopeAPI 手册 / API Reference

ContainerModel

public class ContainerModel
源码Source 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

方法Method说明Description
public static Builder builder()
static
返回构建器实例。
Returns the builder.
public static ContainerModel fromMap(Map<String, Object> map)
static
设置来自映射。
Create ContainerModel from a Map (typically from HTTP response)
public String getSessionId()
获取会话标识。
Returns the session id.
public String getContainerId()
获取容器标识。
Returns the container id.
public String getContainerName()
获取容器名称。
Returns the container name.
public String getBaseUrl()
获取基类 URL。
Returns the base url.
public String getBrowserUrl()
获取 `getBrowserUrl`。
Returns the browser url.
public String getFrontBrowserWS()
获取 `getFrontBrowserWS`。
Returns the front browser WS.
public String getClientBrowserWS()
获取 `getClientBrowserWS`。
Returns the client browser WS.
public String getArtifactsSIO()
获取 `getArtifactsSIO`。
Returns the artifacts SIO.
public String[] getPorts()
获取 `getPorts`。
Returns the ports.
public String getMountDir()
获取 `getMountDir`。
Returns the mount dir.
public String getStoragePath()
获取存储路径。
Returns the storage path.
public String getRuntimeToken()
获取运行时令牌。
Returns the runtime token.
public String getVersion()
获取版本。
Returns the version.
public void setSessionId(String sessionId)
设置会话标识。
Sets the session id.
public void setContainerId(String containerId)
设置容器标识。
Sets the container id.
public void setContainerName(String containerName)
设置容器名称。
Sets the container name.
public void setBaseUrl(String baseUrl)
设置基类 URL。
Sets the base url.
public void setBrowserUrl(String browserUrl)
设置 `setBrowserUrl`。
Sets the browser url.
public void setFrontBrowserWS(String frontBrowserWS)
设置 `setFrontBrowserWS`。
Sets the front browser WS.
public void setClientBrowserWS(String clientBrowserWS)
设置 `setClientBrowserWS`。
Sets the client browser WS.
public void setArtifactsSIO(String artifactsSIO)
设置 `setArtifactsSIO`。
Sets the artifacts SIO.
public void setPorts(String[] ports)
设置 `setPorts`。
Sets the ports.
public void setMountDir(String mountDir)
设置 `setMountDir`。
Sets the mount dir.
public void setStoragePath(String storagePath)
设置存储路径。
Sets the storage path.
public void setRuntimeToken(String runtimeToken)
设置运行时令牌。
Sets the runtime token.
public void setVersion(String version)
设置版本。
Sets the version.
public String getAuthToken()
获取认证令牌。
Returns the auth token.
public void setAuthToken(String authToken)
设置认证令牌。
Sets the auth token.
public String toString()
返回 `toString` 结果。
Returns the to string.

构造器详情Constructor Detail

ContainerModel

public ContainerModel()

初始化 ContainerModel 实例。

Creates a new instance.

源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:79–80

方法详情Method Detail

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:38–40

fromMap

public static ContainerModel fromMap(Map<String, Object> map)
static

设置来自映射。

Create ContainerModel from a Map (typically from HTTP response)

参数Parameters
名称Name类型Type说明Description
mapMap<String, Object>映射(类型 `Map`)。The map.
返回Returns ContainerModel
返回ContainerModel。Returns container model.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:45–77

getSessionId

public String getSessionId()

获取会话标识。

Returns the session id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:99–101

getContainerId

public String getContainerId()

获取容器标识。

Returns the container id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:103–105

getContainerName

public String getContainerName()

获取容器名称。

Returns the container name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:107–109

getBaseUrl

public String getBaseUrl()

获取基类 URL。

Returns the base url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:111–113

getBrowserUrl

public String getBrowserUrl()

获取 getBrowserUrl。

Returns the browser url.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:115–117

getFrontBrowserWS

public String getFrontBrowserWS()

获取 getFrontBrowserWS。

Returns the front browser WS.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:119–121

getClientBrowserWS

public String getClientBrowserWS()

获取 getClientBrowserWS。

Returns the client browser WS.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:123–125

getArtifactsSIO

public String getArtifactsSIO()

获取 getArtifactsSIO。

Returns the artifacts SIO.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:127–129

getPorts

public String[] getPorts()

获取 getPorts。

Returns the ports.

返回Returns String[]
返回String[]。Returns string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:131–133

getMountDir

public String getMountDir()

获取 getMountDir。

Returns the mount dir.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:135–137

getStoragePath

public String getStoragePath()

获取存储路径。

Returns the storage path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:139–141

getRuntimeToken

public String getRuntimeToken()

获取运行时令牌。

Returns the runtime token.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:143–145

getVersion

public String getVersion()

获取版本。

Returns the version.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:147–149

setSessionId

public void setSessionId(String sessionId)

设置会话标识。

Sets the session id.

参数Parameters
名称Name类型Type说明Description
sessionIdString会话标识(类型 `String`)。The session id.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:151–153

setContainerId

public void setContainerId(String containerId)

设置容器标识。

Sets the container id.

参数Parameters
名称Name类型Type说明Description
containerIdString容器标识(类型 `String`)。The container id.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:155–157

setContainerName

public void setContainerName(String containerName)

设置容器名称。

Sets the container name.

参数Parameters
名称Name类型Type说明Description
containerNameString容器名称(类型 `String`)。The container name.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:159–161

setBaseUrl

public void setBaseUrl(String baseUrl)

设置基类 URL。

Sets the base url.

参数Parameters
名称Name类型Type说明Description
baseUrlString基类 URL(类型 `String`)。The base url.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:163–165

setBrowserUrl

public void setBrowserUrl(String browserUrl)

设置 setBrowserUrl。

Sets the browser url.

参数Parameters
名称Name类型Type说明Description
browserUrlStringbrowser URL(类型 `String`)。The browser url.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:167–169

setFrontBrowserWS

public void setFrontBrowserWS(String frontBrowserWS)

设置 setFrontBrowserWS。

Sets the front browser WS.

参数Parameters
名称Name类型Type说明Description
frontBrowserWSStringfront Browser WS(类型 `String`)。The front browser WS.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:171–173

setClientBrowserWS

public void setClientBrowserWS(String clientBrowserWS)

设置 setClientBrowserWS。

Sets the client browser WS.

参数Parameters
名称Name类型Type说明Description
clientBrowserWSString客户端 Browser WS(类型 `String`)。The client browser WS.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:175–177

setArtifactsSIO

public void setArtifactsSIO(String artifactsSIO)

设置 setArtifactsSIO。

Sets the artifacts SIO.

参数Parameters
名称Name类型Type说明Description
artifactsSIOStringartifacts SIO(类型 `String`)。The artifacts SIO.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:179–181

setPorts

public void setPorts(String[] ports)

设置 setPorts。

Sets the ports.

参数Parameters
名称Name类型Type说明Description
portsString[]ports(类型 `String[]`)。The ports.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:183–185

setMountDir

public void setMountDir(String mountDir)

设置 setMountDir。

Sets the mount dir.

参数Parameters
名称Name类型Type说明Description
mountDirStringmount 目录(类型 `String`)。The mount dir.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:187–189

setStoragePath

public void setStoragePath(String storagePath)

设置存储路径。

Sets the storage path.

参数Parameters
名称Name类型Type说明Description
storagePathString存储路径(类型 `String`)。The storage path.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:191–193

setRuntimeToken

public void setRuntimeToken(String runtimeToken)

设置运行时令牌。

Sets the runtime token.

参数Parameters
名称Name类型Type说明Description
runtimeTokenString运行时令牌(类型 `String`)。The runtime token.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:195–197

setVersion

public void setVersion(String version)

设置版本。

Sets the version.

参数Parameters
名称Name类型Type说明Description
versionString版本(类型 `String`)。The version.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:199–201

getAuthToken

public String getAuthToken()

获取认证令牌。

Returns the auth token.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:203–205

setAuthToken

public void setAuthToken(String authToken)

设置认证令牌。

Sets the auth token.

参数Parameters
名称Name类型Type说明Description
authTokenString认证令牌(类型 `String`)。The auth token.
源码Source io/agentscope/runtime/sandbox/manager/model/container/ContainerModel.java:207–209

toString

public String toString()

返回 toString 结果。

Returns the to string.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/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.

基于官方固定版本源码静态生成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.