Package io.agentscope.extensions.cos
Class CosRemoteSnapshotClient
java.lang.Object
io.agentscope.extensions.cos.CosRemoteSnapshotClient
- All Implemented Interfaces:
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
public class CosRemoteSnapshotClient
extends Object
implements io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient
RemoteSnapshotClient backed by Tencent Cloud COS.-
Constructor Summary
ConstructorsConstructorDescriptionCosRemoteSnapshotClient(com.qcloud.cos.COSClient cosClient, String bucketName, String keyPrefix) Creates a COS-backed snapshot client. -
Method Summary
-
Constructor Details
-
CosRemoteSnapshotClient
public CosRemoteSnapshotClient(com.qcloud.cos.COSClient cosClient, String bucketName, String keyPrefix) Creates a COS-backed snapshot client.- Parameters:
cosClient- initialized COS clientbucketName- bucket for snapshot objectskeyPrefix- object key prefix (optional, may be null/blank)
-
-
Method Details
-
upload
- Specified by:
uploadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
download
- Specified by:
downloadin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-
exists
- Specified by:
existsin interfaceio.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotClient- Throws:
Exception
-