CosSnapshotSpec
public class CosSnapshotSpec extends RemoteSnapshotSpec
源码Source
io/agentscope/extensions/cos/CosSnapshotSpec.java:25–37COS 快照规格,把智能体接入外部消息渠道与企业平台。位于 io.agentscope.extensions.cos 包,继承自 RemoteSnapshotSpec。核心成员包括 CosSnapshotSpec。
Convenience SandboxSnapshotSpec for Tencent Cloud COS snapshot storage.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public CosSnapshotSpec(COSClient cosClient, String bucketName, String keyPrefix) | 初始化 `CosSnapshotSpec` 实例。 Creates a COS snapshot spec from an existing COS client. |
构造器详情Constructor Detail
CosSnapshotSpec
public CosSnapshotSpec(COSClient cosClient, String bucketName, String keyPrefix)
初始化 CosSnapshotSpec 实例。
Creates a COS snapshot spec from an existing COS client.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
cosClient | COSClient | COS 客户端(类型 `COSClient`)。initialized COS client |
bucketName | String | 存储桶名称(类型 `String`)。target bucket |
keyPrefix | String | 键 Prefix(类型 `String`)。key prefix (optional, may be null/blank) |
源码Source
io/agentscope/extensions/cos/CosSnapshotSpec.java:34–36