BFCLSandbox
@RegisterSandbox( imageName = "agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-bfcl:latest", sandboxType = "bfcl", runtimeConfig = {"shm_size=8.06gb"}, securityLevel = "medium", timeout = 30, description = "bfcl Sandbox", environment = { "OPENAI_API_KEY=${OPENAI_API_KEY:}", "BFCL_DATA_PATH=/agentscope_runtime/training_box/bfcl/multi_turn/${DATASET_SUB_TYPE:multi_turn}_processed.jsonl", "BFCL_SPLID_ID_PATH=/agentscope_runtime/training_box/bfcl/multi_turn/${DATASET_SUB_TYPE:multi_turn}_split_ids.json" } ) public class BFCLSandbox extends TrainingSandbox
源码Source
io/agentscope/runtime/sandbox/box/BFCLSandbox.java:25–71BFCL 沙箱,承载智能体的部署、调度与服务化运行。位于 io.agentscope.runtime.sandbox.box 包,继承自 TrainingSandbox。核心成员包括 BFCLSandbox。
A class in io.agentscope.runtime.sandbox.box that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.box. Extends TrainingSandbox.
构造器摘要Constructor Summary
构造器详情Constructor Detail
BFCLSandbox
public BFCLSandbox(SandboxService managerApi, String userId, String sessionId)
初始化 BFCLSandbox 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
managerApi | SandboxService | 管理器 API(类型 `SandboxService`)。The manager api. |
userId | String | 用户标识(类型 `String`)。The user id. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
源码Source
io/agentscope/runtime/sandbox/box/BFCLSandbox.java:40–45BFCLSandbox
public BFCLSandbox(SandboxService managerApi, String userId, String sessionId, FileSystemConfig fileSystemConfig)
初始化 BFCLSandbox 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
managerApi | SandboxService | 管理器 API(类型 `SandboxService`)。The manager api. |
userId | String | 用户标识(类型 `String`)。The user id. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
fileSystemConfig | FileSystemConfig | 文件系统配置(类型 `FileSystemConfig`)。The file system config. |
源码Source
io/agentscope/runtime/sandbox/box/BFCLSandbox.java:47–53BFCLSandbox
public BFCLSandbox(SandboxService managerApi, String userId, String sessionId, Map<String, String> environment)
初始化 BFCLSandbox 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
managerApi | SandboxService | 管理器 API(类型 `SandboxService`)。The manager api. |
userId | String | 用户标识(类型 `String`)。The user id. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
environment | Map<String, String> | 环境(类型 `Map`)。The environment. |
源码Source
io/agentscope/runtime/sandbox/box/BFCLSandbox.java:55–61BFCLSandbox
public BFCLSandbox(SandboxService managerApi, String userId, String sessionId, FileSystemConfig fileSystemConfig, Map<String, String> environment)
初始化 BFCLSandbox 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
managerApi | SandboxService | 管理器 API(类型 `SandboxService`)。The manager api. |
userId | String | 用户标识(类型 `String`)。The user id. |
sessionId | String | 会话标识(类型 `String`)。The session id. |
fileSystemConfig | FileSystemConfig | 文件系统配置(类型 `FileSystemConfig`)。The file system config. |
environment | Map<String, String> | 环境(类型 `Map`)。The environment. |
源码Source
io/agentscope/runtime/sandbox/box/BFCLSandbox.java:63–70