AS AgentScopeAPI 手册 / API Reference

OssConfig

public class OssConfig extends FileSystemConfig
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:26–123

OSS 配置,保存相关配置项。位于 io.agentscope.runtime.sandbox.manager.fs.oss 包,继承自 FileSystemConfig。核心成员包括 getOssEndpoint、getOssAccessKeyId、getOssAccessKeySecret、getOssBucketName、builder、createStorageManager。

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

嵌套类摘要Nested Class Summary

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

构造器摘要Constructor Summary

构造器Constructor说明Description
public OssConfig(Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount, String ossEndpoint, String ossAccessKeyId, String ossAccessKeySecret, String ossBucketName)
初始化 `OssConfig` 实例。
Creates a new instance.

方法摘要Method Summary

方法Method说明Description
public String getOssEndpoint()
获取OSS 端点。
Returns the oss endpoint.
public String getOssAccessKeyId()
获取OSS 访问键标识。
Returns the oss access key id.
public String getOssAccessKeySecret()
获取OSS 访问键密钥。
Returns the oss access key secret.
public String getOssBucketName()
获取OSS 存储桶名称。
Returns the oss bucket name.
public static Builder builder()
static
返回构建器实例。
Returns the builder.
public StorageManager createStorageManager()
创建存储管理器。
Creates the storage manager.

构造器详情Constructor Detail

OssConfig

public OssConfig(Map<String, String> readonlyMounts, String storageFolderPath, String mountDir, Map<String, String> nonCopyMount, String ossEndpoint, String ossAccessKeyId, String ossAccessKeySecret, String ossBucketName)

初始化 OssConfig 实例。

Creates a new instance.

参数Parameters
名称Name类型Type说明Description
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.
ossEndpointStringOSS 端点(类型 `String`)。The oss endpoint.
ossAccessKeyIdStringOSS 访问键标识(类型 `String`)。The oss access key id.
ossAccessKeySecretStringOSS 访问键密钥(类型 `String`)。The oss access key secret.
ossBucketNameStringOSS 存储桶名称(类型 `String`)。The oss bucket name.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:32–48

方法详情Method Detail

getOssEndpoint

public String getOssEndpoint()

获取OSS 端点。

Returns the oss endpoint.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:58–60

getOssAccessKeyId

public String getOssAccessKeyId()

获取OSS 访问键标识。

Returns the oss access key id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:62–64

getOssAccessKeySecret

public String getOssAccessKeySecret()

获取OSS 访问键密钥。

Returns the oss access key secret.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:66–68

getOssBucketName

public String getOssBucketName()

获取OSS 存储桶名称。

Returns the oss bucket name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:70–72

builder

public static Builder builder()
static

返回构建器实例。

Returns the builder.

返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:74–76

createStorageManager

public StorageManager createStorageManager()

创建存储管理器。

Creates the storage manager.

返回Returns StorageManager
返回StorageManager。Returns storage manager.
源码Source io/agentscope/runtime/sandbox/manager/fs/oss/OssConfig.java:78–81

嵌套类详情Nested Class Detail

Builder

public static class Builder extends FileSystemConfig.Builder<Builder>

构建器,用于构建并配置目标实例。位于 io.agentscope.runtime.sandbox.manager.fs.oss 包,继承自 FileSystemConfig.Builder<Builder>。核心成员包括 self、ossEndpoint、ossAccessKeyId、ossAccessKeySecret、ossBucketName、build。

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

继承成员Inherited Members

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