AgentRunFilesystemSpec
public class AgentRunFilesystemSpec extends SandboxFilesystemSpec
io/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:26–137智能体运行文件系统规格,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.agentrun 包,继承自 SandboxFilesystemSpec。核心成员包括 client、apiKey、accountId、region、dataPlaneBaseUrl、templateName。
SandboxFilesystemSpec for the Alibaba Cloud AgentRun store.
方法摘要Method Summary
方法详情Method Detail
client
public AgentRunFilesystemSpec client(SandboxClient<?> client)
设置客户端。
Performs the client operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
client | SandboxClient<?> | 客户端(类型 `SandboxClient`)。The client. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:33–36apiKey
public AgentRunFilesystemSpec apiKey(String apiKey)
设置API 键。
Performs the api key operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
apiKey | String | API 键(类型 `String`)。The api key. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:38–41accountId
public AgentRunFilesystemSpec accountId(String accountId)
设置该参数。
Performs the account id operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
accountId | String | account 标识(类型 `String`)。The account id. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:43–46region
public AgentRunFilesystemSpec region(String region)
设置区域。
Performs the region operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
region | String | 区域(类型 `String`)。The region. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:48–51dataPlaneBaseUrl
public AgentRunFilesystemSpec dataPlaneBaseUrl(String url)
设置数据面基类 URL。
Performs the data plane base url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
url | String | 服务地址(类型 `String`)。The url. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:53–56templateName
public AgentRunFilesystemSpec templateName(String templateName)
设置模板名称。
Performs the template name operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
templateName | String | 模板名称(类型 `String`)。The template name. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:58–61mcpServerUrl
public AgentRunFilesystemSpec mcpServerUrl(String mcpServerUrl)
设置MCP 服务端 URL。
Performs the mcp server url operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mcpServerUrl | String | MCP 服务端 URL(类型 `String`)。The mcp server url. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:63–66mcpEndpoint
public AgentRunFilesystemSpec mcpEndpoint(String mcpEndpoint)
设置MCP 端点。
Performs the mcp endpoint operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mcpEndpoint | String | MCP 端点(类型 `String`)。The mcp endpoint. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:68–71sandboxIdleTimeoutSeconds
public AgentRunFilesystemSpec sandboxIdleTimeoutSeconds(int seconds)
设置该参数。
Performs the sandbox idle timeout seconds operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seconds | int | 秒(类型 `int`)。The seconds. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:73–76nasConfig
public AgentRunFilesystemSpec nasConfig(AgentRunNasMountConfig nas)
设置该参数。
Performs the nas config operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
nas | AgentRunNasMountConfig | nas(类型 `AgentRunNasMountConfig`)。The nas. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:78–81addOssMount
public AgentRunFilesystemSpec addOssMount(AgentRunOssMountConfig mount)
添加 addOssMount。
Adds the oss mount.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mount | AgentRunOssMountConfig | mount(类型 `AgentRunOssMountConfig`)。The mount. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:83–86workspaceRoot
public AgentRunFilesystemSpec workspaceRoot(String workspaceRoot)
设置工作区根。
Performs the workspace root operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceRoot | String | 工作区根(类型 `String`)。The workspace root. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:88–91connectTimeoutSeconds
public AgentRunFilesystemSpec connectTimeoutSeconds(int seconds)
设置连接超时秒。
Performs the connect timeout seconds operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seconds | int | 秒(类型 `int`)。The seconds. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:93–96readTimeoutSeconds
public AgentRunFilesystemSpec readTimeoutSeconds(int seconds)
设置读取超时秒。
Performs the read timeout seconds operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
seconds | int | 秒(类型 `int`)。The seconds. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:98–101maxRetries
public AgentRunFilesystemSpec maxRetries(int maxRetries)
设置最大重试。
Performs the max retries operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
maxRetries | int | 最大重试(类型 `int`)。The max retries. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:103–106snapshotSpec
public AgentRunFilesystemSpec snapshotSpec(SandboxSnapshotSpec snapshotSpec)
设置快照规格。
Performs the snapshot spec operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotSpec | SandboxSnapshotSpec | 快照规格(类型 `SandboxSnapshotSpec`)。The snapshot spec. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:108–111workspaceSpec
public AgentRunFilesystemSpec workspaceSpec(WorkspaceSpec workspaceSpec)
设置工作区规格。
Performs the workspace spec operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
workspaceSpec | WorkspaceSpec | 工作区规格(类型 `WorkspaceSpec`)。The workspace spec. |
AgentRunFilesystemSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:113–116createClient
protected SandboxClient<?> createClient()
创建客户端。
Creates the client.
SandboxClient<?>io/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:118–121clientOptions
protected SandboxClientOptions clientOptions()
返回客户端选项。
Returns the client options.
SandboxClientOptionsio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:123–126snapshotSpec
protected SandboxSnapshotSpec snapshotSpec()
返回快照规格。
Returns the snapshot spec.
SandboxSnapshotSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:128–131workspaceSpec
protected WorkspaceSpec workspaceSpec()
返回工作区规格。
Returns the workspace spec.
WorkspaceSpecio/agentscope/extensions/sandbox/agentrun/AgentRunFilesystemSpec.java:133–136