AS AgentScopeAPI 手册 / API Reference

E2bPersistenceMode

public enum E2bPersistenceMode
源码Source io/agentscope/extensions/sandbox/e2b/E2bPersistenceMode.java:19–27

定义E 2 b 持久化模式相关取值的枚举。位于 io.agentscope.extensions.sandbox.e2b 包。核心成员包括 TAR、NATIVE_SNAPSHOT。

How workspace bytes are persisted for E2B sandboxes.

枚举常量摘要Enum Constant Summary

常量Constant说明Description
TAR
执行 `TAR` 方法。
Tar archive bytes (default, compatible with other Harness snapshots).
NATIVE_SNAPSHOT
执行原生快照相关操作。
E2B `POST /sandboxes/{id}/snapshots` plus `E2bSnapshotRefs` marker bytes in the Harness snapshot stream (restore recreates a sandbox with the snapshot id as `templateID`).

枚举常量详情Enum Constant Detail

TAR

TAR
staticfinal

执行 TAR 方法。

Tar archive bytes (default, compatible with other Harness snapshots).

源码Source io/agentscope/extensions/sandbox/e2b/E2bPersistenceMode.java:21

NATIVE_SNAPSHOT

NATIVE_SNAPSHOT
staticfinal

执行原生快照相关操作。

E2B POST /sandboxes/{id}/snapshots plus E2bSnapshotRefs marker bytes in the Harness snapshot stream (restore recreates a sandbox with the snapshot id as templateID).

源码Source io/agentscope/extensions/sandbox/e2b/E2bPersistenceMode.java:26
基于官方固定版本源码静态生成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.