AS AgentScopeAPI 手册 / API Reference

CosSnapshotSpec

public class CosSnapshotSpec extends RemoteSnapshotSpec
源码Source io/agentscope/extensions/cos/CosSnapshotSpec.java:25–37

COS 快照规格,把智能体接入外部消息渠道与企业平台。位于 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
cosClientCOSClientCOS 客户端(类型 `COSClient`)。initialized COS client
bucketNameString存储桶名称(类型 `String`)。target bucket
keyPrefixString键 Prefix(类型 `String`)。key prefix (optional, may be null/blank)
源码Source io/agentscope/extensions/cos/CosSnapshotSpec.java:34–36

继承成员Inherited Members

继承自Methods inherited from RemoteSnapshotSpec
基于官方固定版本源码静态生成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.