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:21NATIVE_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