Skip to content

Commit effbd82

Browse files
committed
Update e2b.toml
1 parent 2f88ab4 commit effbd82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

template/e2b.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
# This is a config for E2B sandbox template.
2-
# You can use 'template_id' (nlhz8vlwyupq845jsdg9) or 'template_name (code-interpreter-v1) from this config to spawn a sandbox:
2+
# You can use template ID (nlhz8vlwyupq845jsdg9) or template name (code-interpreter-v1) to create a sandbox:
33

44
# Python SDK
5-
# from e2b import Sandbox
6-
# sandbox = Sandbox(template='code-interpreter-v1')
5+
# from e2b import Sandbox, AsyncSandbox
6+
# sandbox = Sandbox("code-interpreter-v1") # Sync sandbox
7+
# sandbox = await AsyncSandbox.create("code-interpreter-v1") # Async sandbox
78

89
# JS SDK
910
# import { Sandbox } from 'e2b'
10-
# const sandbox = await Sandbox.create({ template: 'code-interpreter-v1' })
11+
# const sandbox = await Sandbox.create('code-interpreter-v1')
1112

1213
team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
1314
memory_mb = 1_024

0 commit comments

Comments
 (0)