AS AgentScopeAPI 手册 / API Reference

Builder

public static abstract class Builder<T extends Builder<T>>
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:91–136

构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.fs 包。核心成员包括 self、readonlyMounts、addReadonlyMount、addNonCopyMount、storageFolderPath、mountDir。

A class in io.agentscope.runtime.sandbox.manager.fs that deploys, schedules and serves agents. Declared in io.agentscope.runtime.sandbox.manager.fs.

字段摘要Field Summary

字段Field类型Type说明Description
fileSystemType
FileSystemType
文件系统类型字段。
The file system type field.
readonlyMounts
Map<String, String>
`readonlyMounts` 字段。
The readonly mounts field.
storageFolderPath
String
`storageFolderPath` 字段。
The storage folder path field.
mountDir
String
`mountDir` 字段。
The mount dir field.
nonCopyMounts
Map<String, String>
`nonCopyMounts` 字段。
The non copy mounts field.

构造器摘要Constructor Summary

构造器Constructor说明Description
protected Builder(FileSystemType fileSystemType)
初始化 `Builder` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
protected abstract T self()
abstract
返回自身。
Returns the self.
public T readonlyMounts(Map<String, String> readonlyMounts)
设置该配置项。
Performs the readonly mounts operation.
public T addReadonlyMount(String hostPath, String containerPath)
添加 `addReadonlyMount`。
Adds the readonly mount.
public T addNonCopyMount(String hostPath, String containerPath)
添加 `addNonCopyMount`。
Adds the non copy mount.
public T storageFolderPath(String storageFolderPath)
设置该配置项。
Performs the storage folder path operation.
public T mountDir(String mountDir)
设置该配置项。
Performs the mount dir operation.
public abstract FileSystemConfig build()
abstract
构建并返回最终实例。
Creates and returns an instance.

字段详情Field Detail

fileSystemType

protected FileSystemType fileSystemType

文件系统类型字段。声明为 protected FileSystemType fileSystemType。

The file system type field.

源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:92

readonlyMounts

protected Map<String, String> readonlyMounts

readonlyMounts 字段。声明为 protected Map readonlyMounts。

The readonly mounts field.

源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:93

storageFolderPath

protected String storageFolderPath

storageFolderPath 字段。声明为 protected String storageFolderPath。

The storage folder path field.

源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:94

mountDir

protected String mountDir

mountDir 字段。声明为 protected String mountDir。

The mount dir field.

源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:95

nonCopyMounts

protected Map<String, String> nonCopyMounts

nonCopyMounts 字段。声明为 protected Map nonCopyMounts。

The non copy mounts field.

源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:96

构造器详情Constructor Detail

Builder

protected Builder(FileSystemType fileSystemType)

初始化 Builder 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
fileSystemTypeFileSystemType文件系统类型(类型 `FileSystemType`)。The file system type.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:98–100

方法详情Method Detail

self

protected abstract T self()
abstract

返回自身。

Returns the self.

返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:102

readonlyMounts

public T readonlyMounts(Map<String, String> readonlyMounts)

设置该配置项。

Performs the readonly mounts operation.

参数Parameters
名称Name类型Type说明Description
readonlyMountsMap<String, String>只读 Mounts(类型 `Map`)。The readonly mounts.
返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:104–107

addReadonlyMount

public T addReadonlyMount(String hostPath, String containerPath)

添加 addReadonlyMount。

Adds the readonly mount.

参数Parameters
名称Name类型Type说明Description
hostPathStringhost 路径(类型 `String`)。The host path.
containerPathString容器路径(类型 `String`)。The container path.
返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:109–115

addNonCopyMount

public T addNonCopyMount(String hostPath, String containerPath)

添加 addNonCopyMount。

Adds the non copy mount.

参数Parameters
名称Name类型Type说明Description
hostPathStringhost 路径(类型 `String`)。The host path.
containerPathString容器路径(类型 `String`)。The container path.
返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:117–123

storageFolderPath

public T storageFolderPath(String storageFolderPath)

设置该配置项。

Performs the storage folder path operation.

参数Parameters
名称Name类型Type说明Description
storageFolderPathString存储 Folder 路径(类型 `String`)。The storage folder path.
返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:125–128

mountDir

public T mountDir(String mountDir)

设置该配置项。

Performs the mount dir operation.

参数Parameters
名称Name类型Type说明Description
mountDirStringmount 目录(类型 `String`)。The mount dir.
返回Returns T
返回T。Returns t.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:130–133

build

public abstract FileSystemConfig build()
abstract

构建并返回最终实例。

Creates and returns an instance.

返回Returns FileSystemConfig
返回FileSystemConfig。Returns file system config.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:135
基于官方固定版本源码静态生成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.