AS AgentScopeAPI 手册 / API Reference

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
clientRemoteSnapshotClient客户端(类型 `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.

返回Returns RemoteSnapshotClient
返回RemoteSnapshotClient。Returns remote snapshot client.
源码Source io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:39–41

build

public SandboxSnapshot build(String snapshotId)

构建并返回最终实例。

{@inheritDoc}

参数Parameters
名称Name类型Type说明Description
snapshotIdString快照标识(类型 `String`)。The snapshot id.
返回Returns SandboxSnapshot
一种新的`RemoteSandboxSnapshot`使用此规格's 客户端。a new `RemoteSandboxSnapshot` using this spec's client
源码Source io/agentscope/harness/agent/sandbox/snapshot/RemoteSnapshotSpec.java:48–51
基于官方固定版本源码静态生成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.