File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# 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:
3
3
4
4
# 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
7
8
8
9
# JS SDK
9
10
# import { Sandbox } from 'e2b'
10
- # const sandbox = await Sandbox.create({ template: 'code-interpreter-v1' } )
11
+ # const sandbox = await Sandbox.create('code-interpreter-v1')
11
12
12
13
team_id = " 460355b3-4f64-48f9-9a16-4442817f79f5"
13
14
memory_mb = 1_024
You can’t perform that action at this time.
0 commit comments