Builder
public static class Builder
io/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:163–238构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.model 包。核心成员包括 containerPrefixKey、storageFolder、redisConfig、bearerToken、baseUrl、containerDeployment。
A class in io.agentscope.runtime.sandbox.manager.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.
方法摘要Method Summary
方法详情Method Detail
containerPrefixKey
public Builder containerPrefixKey(String containerPrefixKey)
设置该配置项。
Performs the container prefix key operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
containerPrefixKey | String | 容器 Prefix 键(类型 `String`)。The container prefix key. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:177–183storageFolder
public Builder storageFolder(String storageFolder)
设置该配置项。
Performs the storage folder operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storageFolder | String | 存储 Folder(类型 `String`)。The storage folder. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:185–187redisConfig
public Builder redisConfig(RedisManagerConfig redisConfig)
设置该配置项。
Performs the redis config operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
redisConfig | RedisManagerConfig | Redis 配置(类型 `RedisManagerConfig`)。The redis config. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:189–193bearerToken
public Builder bearerToken(String bearerToken)
设置该配置项。
Performs the bearer token operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
bearerToken | String | bearer 令牌(类型 `String`)。The bearer token. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:195–198baseUrl
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/ManagerConfig.java:200–203containerDeployment
public Builder containerDeployment(BaseClientConfig clientConfig)
设置容器部署。
Performs the container deployment operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
clientConfig | BaseClientConfig | 客户端配置(类型 `BaseClientConfig`)。The client config. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:205–208portRange
public Builder portRange(PortRange portRange)
设置该配置项。
Performs the port range operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
portRange | PortRange | port Range(类型 `PortRange`)。The port range. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:210–213poolSize
public Builder poolSize(int poolSize)
设置连接池大小。
Performs the pool size operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
poolSize | int | 连接池大小(类型 `int`)。The pool size. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:215–218fileSystemConfig
public Builder fileSystemConfig(FileSystemConfig fileSystemConfig)
设置文件系统配置。
Performs the file system config operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileSystemConfig | FileSystemConfig | 文件系统配置(类型 `FileSystemConfig`)。The file system config. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:220–223defaultSandboxType
public Builder defaultSandboxType(List<SandboxType> defaultSandboxType)
设置默认沙箱类型。
Performs the default sandbox type operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
defaultSandboxType | List<SandboxType> | 默认沙箱类型(类型 `List`)。The default sandbox type. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:225–228agentBayApiKey
public Builder agentBayApiKey(String agentBayApiKey)
设置该配置项。
Performs the agent bay api key operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentBayApiKey | String | 智能体 Bay API 键(类型 `String`)。The agent bay api key. |
Builderio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:230–233build
public ManagerConfig build()
构建并返回最终实例。
Creates and returns an instance.
ManagerConfigio/agentscope/runtime/sandbox/manager/model/ManagerConfig.java:235–237