Class RemoteSnapshotSpec
java.lang.Object
io.agentscope.harness.agent.sandbox.snapshot.RemoteSnapshotSpec
- All Implemented Interfaces:
SandboxSnapshotSpec
Snapshot spec that creates
RemoteSandboxSnapshot instances backed by a
RemoteSnapshotClient.
The same client instance is shared across all sessions created by this spec.
Implement RemoteSnapshotClient to connect to your remote storage store
(e.g. AWS S3, Alibaba OSS, Google GCS).
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a remote snapshot spec. -
Method Summary
-
Constructor Details
-
RemoteSnapshotSpec
Creates a remote snapshot spec.- Parameters:
client- the remote storage client implementation to use
-
-
Method Details
-
getClient
-
build
Creates aSandboxSnapshotfor the given session ID.- Specified by:
buildin interfaceSandboxSnapshotSpec- Parameters:
snapshotId- unique identifier for the snapshot (typically the session UUID)- Returns:
- a new
RemoteSandboxSnapshotusing this spec's client
-