Enum Class E2bPersistenceMode

java.lang.Object
java.lang.Enum<E2bPersistenceMode>
io.agentscope.extensions.sandbox.e2b.E2bPersistenceMode
All Implemented Interfaces:
Serializable, Comparable<E2bPersistenceMode>, Constable

public enum E2bPersistenceMode extends Enum<E2bPersistenceMode>
How workspace bytes are persisted for E2B sandboxes.
  • Enum Constant Details

    • TAR

      public static final E2bPersistenceMode TAR
      Tar archive bytes (default, compatible with other Harness snapshots).
    • NATIVE_SNAPSHOT

      public static final E2bPersistenceMode 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).
  • Method Details

    • values

      public static E2bPersistenceMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static E2bPersistenceMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null