Builder
public static abstract class Builder<T extends Builder<T>>
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:60–105构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.model.fs 包。核心成员包括 self、readonlyMounts、addReadonlyMount、addNonCopyMount、storageFolderPath、mountDir。
A class in io.agentscope.runtime.sandbox.manager.model.fs that talks to model services and returns generated or embedded output. Declared in io.agentscope.runtime.sandbox.manager.model.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.
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:61readonlyMounts
protected Map<String, String> readonlyMounts
readonlyMounts 字段。声明为 protected Map readonlyMounts。
The readonly mounts field.
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:62storageFolderPath
protected String storageFolderPath
storageFolderPath 字段。声明为 protected String storageFolderPath。
The storage folder path field.
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:63mountDir
protected String mountDir
mountDir 字段。声明为 protected String mountDir。
The mount dir field.
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:64nonCopyMounts
protected Map<String, String> nonCopyMounts
nonCopyMounts 字段。声明为 protected Map nonCopyMounts。
The non copy mounts field.
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:65构造器详情Constructor Detail
Builder
protected Builder(FileSystemType fileSystemType)
初始化 Builder 实例。
Creates a new instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
fileSystemType | FileSystemType | 文件系统类型(类型 `FileSystemType`)。The file system type. |
io/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:67–69方法详情Method Detail
self
protected abstract T self()
返回自身。
Returns the self.
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:71readonlyMounts
public T readonlyMounts(Map<String, String> readonlyMounts)
设置该配置项。
Performs the readonly mounts operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
readonlyMounts | Map<String, String> | 只读 Mounts(类型 `Map`)。The readonly mounts. |
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:73–76addReadonlyMount
public T addReadonlyMount(String hostPath, String containerPath)
添加 addReadonlyMount。
Adds the readonly mount.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hostPath | String | host 路径(类型 `String`)。The host path. |
containerPath | String | 容器路径(类型 `String`)。The container path. |
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:78–84addNonCopyMount
public T addNonCopyMount(String hostPath, String containerPath)
添加 addNonCopyMount。
Adds the non copy mount.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hostPath | String | host 路径(类型 `String`)。The host path. |
containerPath | String | 容器路径(类型 `String`)。The container path. |
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:86–92storageFolderPath
public T storageFolderPath(String storageFolderPath)
设置该配置项。
Performs the storage folder path operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
storageFolderPath | String | 存储 Folder 路径(类型 `String`)。The storage folder path. |
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:94–97mountDir
public T mountDir(String mountDir)
设置该配置项。
Performs the mount dir operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
mountDir | String | mount 目录(类型 `String`)。The mount dir. |
Tio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:99–102build
public abstract FileSystemConfig build()
构建并返回最终实例。
Creates and returns an instance.
FileSystemConfigio/agentscope/runtime/sandbox/manager/model/fs/FileSystemConfig.java:104