RemoteSnapshotSpec
public class RemoteSnapshotSpec implements SandboxSnapshotSpec
源码Source
io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:26–52远程快照规格,承载智能体的部署、调度与服务化运行。位于 io.agentscope.harness.agent.sandbox.snapshot 包,实现 SandboxSnapshotSpec。核心成员包括 getClient、build、RemoteSnapshotSpec。
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
| 构造器Constructor | 说明Description |
|---|---|
public RemoteSnapshotSpec(RemoteSnapshotClient client) | 创建远程快照规格。 Creates a remote snapshot spec. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public RemoteSnapshotClient getClient() | 获取客户端。 Returns the client. |
public SandboxSnapshot build(String snapshotId) | 构建并返回最终实例。 {@inheritDoc} |
构造器详情Constructor Detail
RemoteSnapshotSpec
public RemoteSnapshotSpec(RemoteSnapshotClient client)
创建远程快照规格。
Creates a remote snapshot spec.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
client | RemoteSnapshotClient | 客户端(类型 `RemoteSnapshotClient`)。the remote storage client implementation to use |
源码Source
io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:35–37方法详情Method Detail
getClient
public RemoteSnapshotClient getClient()
获取客户端。
Returns the client.
RemoteSnapshotClient返回RemoteSnapshotClient。Returns remote snapshot client.
源码Source
io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:39–41build
public SandboxSnapshot build(String snapshotId)
构建并返回最终实例。
{@inheritDoc}
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
snapshotId | String | 快照标识(类型 `String`)。The snapshot id. |
SandboxSnapshot一种新的`RemoteSandboxSnapshot`使用此规格's 客户端。a new `RemoteSandboxSnapshot` using this spec's client
源码Source
io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:48–51