Skip to content

armgit / E2B

Public Imported from GitHub
0

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

Update docs

Vasek Mlejnskye93f78e30cb2
diff --git a/apps/docs/sandbox/e2b.Dockerfile b/apps/docs/sandbox/e2b.Dockerfile
index fdfcd0b9d..2252b7c01 100644
--- a/apps/docs/sandbox/e2b.Dockerfile
+++ b/apps/docs/sandbox/e2b.Dockerfile
@@ -5,9 +5,9 @@ WORKDIR /code
# Install e2b JS SDK
RUN npm init es6 -y
-RUN npm i @e2b/sdk
+RUN npm i @e2b/sdk@latest
# Install e2b Python SDK
-RUN pip install e2b
+RUN pip install -U e2b
WORKDIR /
\ No newline at end of file
diff --git a/apps/docs/sandbox/e2b.toml b/apps/docs/sandbox/e2b.toml
index 2390ebc4d..13de87fbb 100644
--- a/apps/docs/sandbox/e2b.toml
+++ b/apps/docs/sandbox/e2b.toml
@@ -1,5 +1,14 @@
-# This is a config for E2B sandbox template
+# This is a config for E2B sandbox template.
+# You can use 'template_id' (8fwe9bb2ygdmk8atde2t) or 'template_name (docs) from this config to spawn a sandbox:
+
+# Python SDK
+# from e2b import Sandbox
+# sandbox = Sandbox(template='docs')
+
+# JS SDK
+# import { Sandbox } from 'e2b'
+# const sandbox = await Sandbox.create({ template: 'docs' })
-id = "8fwe9bb2ygdmk8atde2t"
dockerfile = "e2b.Dockerfile"
-name = "docs"
+template_name = "docs"
+template_id = "8fwe9bb2ygdmk8atde2t"