AS AgentScopeAPI 手册 / API Reference

Builder

public static class Builder extends FileSystemConfig.Builder<Builder>
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:52–91

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

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. Extends FileSystemConfig.Builder.

构造器摘要Constructor Summary

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

方法摘要Method Summary

方法Method说明Description
protected Builder self()
返回自身。
Returns the self.
public Builder ossEndpoint(String ossEndpoint)
设置OSS 端点。
Performs the oss endpoint operation.
public Builder ossAccessKeyId(String ossAccessKeyId)
设置OSS 访问键标识。
Performs the oss access key id operation.
public Builder ossAccessKeySecret(String ossAccessKeySecret)
设置OSS 访问键密钥。
Performs the oss access key secret operation.
public Builder ossBucketName(String ossBucketName)
设置OSS 存储桶名称。
Performs the oss bucket name operation.
public OssConfig build()
构建并返回最终实例。
Creates and returns an instance.

构造器详情Constructor Detail

Builder

public Builder()

初始化 Builder 实例。

Creates a new instance.

源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:58–60

方法详情Method Detail

self

protected Builder self()

返回自身。

Returns the self.

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

ossEndpoint

public Builder ossEndpoint(String ossEndpoint)

设置OSS 端点。

Performs the oss endpoint operation.

参数Parameters
名称Name类型Type说明Description
ossEndpointStringOSS 端点(类型 `String`)。The oss endpoint.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:67–70

ossAccessKeyId

public Builder ossAccessKeyId(String ossAccessKeyId)

设置OSS 访问键标识。

Performs the oss access key id operation.

参数Parameters
名称Name类型Type说明Description
ossAccessKeyIdStringOSS 访问键标识(类型 `String`)。The oss access key id.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:72–75

ossAccessKeySecret

public Builder ossAccessKeySecret(String ossAccessKeySecret)

设置OSS 访问键密钥。

Performs the oss access key secret operation.

参数Parameters
名称Name类型Type说明Description
ossAccessKeySecretStringOSS 访问键密钥(类型 `String`)。The oss access key secret.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:77–80

ossBucketName

public Builder ossBucketName(String ossBucketName)

设置OSS 存储桶名称。

Performs the oss bucket name operation.

参数Parameters
名称Name类型Type说明Description
ossBucketNameStringOSS 存储桶名称(类型 `String`)。The oss bucket name.
返回Returns Builder
返回当前实例,以支持链式调用。Returns the current instance for chaining.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:82–85

build

public OssConfig build()

构建并返回最终实例。

Creates and returns an instance.

返回Returns OssConfig
返回OssConfig。Returns oss config.
源码Source io/agentscope/runtime/sandbox/manager/model/fs/OssConfig.java:87–90
基于官方固定版本源码静态生成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.