Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Return debug option

Jakub Novak60b10d3974a6
diff --git a/packages/python-sdk/e2b/sandbox_async/main.py b/packages/python-sdk/e2b/sandbox_async/main.py
index 3359404a9..553567902 100644
--- a/packages/python-sdk/e2b/sandbox_async/main.py
+++ b/packages/python-sdk/e2b/sandbox_async/main.py
@@ -124,7 +124,9 @@ class AsyncSandbox(SandboxSetup, SandboxApi):
)
sandbox_id = (
- await SandboxApi._create_sandbox(
+ "debug_sandbox_id"
+ if connection_config.debug
+ else await SandboxApi._create_sandbox(
template=template or cls.default_template,
api_key=api_key,
timeout=timeout or cls.default_sandbox_timeout,