Class E2bSnapshotRefs

java.lang.Object
io.agentscope.extensions.sandbox.e2b.E2bSnapshotRefs

public final class E2bSnapshotRefs extends Object
Cross-language marker for E2B native snapshot references, aligned with openai-agents-python E2B_SANDBOX_SNAPSHOT_V1.
  • Field Details

    • MAGIC_PREFIX

      public static final byte[] MAGIC_PREFIX
  • Method Details

    • encodeSnapshotId

      public static byte[] encodeSnapshotId(String snapshotId) throws Exception
      Throws:
      Exception
    • decodeSnapshotIdIfPresent

      public static String decodeSnapshotIdIfPresent(byte[] raw)