AS AgentScopeAPI 手册 / API Reference

FileSystemConfig

@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "fileSystemType" ) @JsonSubTypes({ @JsonSubTypes.Type(value = LocalFileSystemConfig.class, name = "LOCAL"), @JsonSubTypes.Type(value = OssConfig.class, name = "OSS") }) public abstract class FileSystemConfig
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:28–137

文件系统配置,保存相关配置项。位于 io.agentscope.runtime.sandbox.manager.fs 包。核心成员包括 createStorageManager、getFileSystemType、getReadonlyMounts、getStorageFolderPath、getMountDir、getNonCopyMount。

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

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
Builder类class
构建器,用于构建并配置目标实例。
A class in io.agentscope.runtime.sandbox.manager.fs that deploys, schedules and serves agents.

构造器摘要Constructor Summary

构造器Constructor说明Description
protected FileSystemConfig(FileSystemType fileSystemType, Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount)
初始化 `FileSystemConfig` 实例。
Creates a new instance.
protected FileSystemConfig(FileSystemType fileSystemType)
初始化 `FileSystemConfig` 实例。
Creates a new instance.
protected FileSystemConfig(Builder<?> builder)
初始化 `FileSystemConfig` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public abstract StorageManager createStorageManager()
abstract
创建存储管理器。
Creates the storage manager.
public FileSystemType getFileSystemType()
获取文件系统类型。
Returns the file system type.
public Map<String, String> getReadonlyMounts()
获取 `getReadonlyMounts`。
Returns the readonly mounts.
public String getStorageFolderPath()
获取 `getStorageFolderPath`。
Returns the storage folder path.
public String getMountDir()
获取 `getMountDir`。
Returns the mount dir.
public Map<String, String> getNonCopyMount()
获取 `getNonCopyMount`。
Returns the non copy mount.

构造器详情Constructor Detail

FileSystemConfig

protected FileSystemConfig(FileSystemType fileSystemType, Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount)

初始化 FileSystemConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
fileSystemTypeFileSystemType文件系统类型(类型 `FileSystemType`)。The file system type.
readonlyMountsMap<String, String>只读 Mounts(类型 `Map`)。The readonly mounts.
storageFolderPathString存储 Folder 路径(类型 `String`)。The storage folder path.
mountDirStringmount 目录(类型 `String`)。The mount dir.
nonCopyMountMap<String, String>non Copy Mount(类型 `Map`)。The non copy mount.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:44–55

FileSystemConfig

protected FileSystemConfig(FileSystemType fileSystemType)

初始化 FileSystemConfig 实例。

Creates a new instance.

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

FileSystemConfig

protected FileSystemConfig(Builder<?> builder)

初始化 FileSystemConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
builderBuilder<?>构建器(类型 `Builder`)。The builder.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:63–69

方法详情Method Detail

createStorageManager

public abstract StorageManager createStorageManager()
abstract

创建存储管理器。

Creates the storage manager.

返回Returns StorageManager
返回StorageManager。Returns storage manager.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:61

getFileSystemType

public FileSystemType getFileSystemType()

获取文件系统类型。

Returns the file system type.

返回Returns FileSystemType
返回FileSystemType。Returns file system type.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:71–73

getReadonlyMounts

public Map<String, String> getReadonlyMounts()

获取 getReadonlyMounts。

Returns the readonly mounts.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:75–77

getStorageFolderPath

public String getStorageFolderPath()

获取 getStorageFolderPath。

Returns the storage folder path.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:79–81

getMountDir

public String getMountDir()

获取 getMountDir。

Returns the mount dir.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:83–85

getNonCopyMount

public Map<String, String> getNonCopyMount()

获取 getNonCopyMount。

Returns the non copy mount.

返回Returns Map<String, String>
返回映射。Returns map.
源码Source io/agentscope/runtime/sandbox/manager/fs/FileSystemConfig.java:87–89

嵌套类详情Nested Class Detail

Builder

public static abstract class Builder<T extends Builder<T>>

构建器,用于构建并配置目标实例。位于 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.

基于官方固定版本源码静态生成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.