Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Cleanup examples
Tomas Valenta1418ea5cef20
diff --git a/packages/js-sdk/example.mts b/packages/js-sdk/example.mtsindex 1394d744a..7ed58f2f0 100644--- a/packages/js-sdk/example.mts+++ b/packages/js-sdk/example.mts@@ -1,16 +1 @@-import { config } from 'dotenv'--import { Sandbox } from './dist'--config()--const sandbox = await Sandbox.create({- logger: {- error: console.error,- warn: console.warn,- info: console.info,- },-})-console.log(sandbox.id)--await sandbox.close()+import { Sandbox } from './src'diff --git a/packages/python-sdk/example.py b/packages/python-sdk/example.pyindex 6a6b38717..aa61bd3b0 100644--- a/packages/python-sdk/example.py+++ b/packages/python-sdk/example.py@@ -1,20 +1 @@-import logging--from dotenv import load_dotenvfrom e2b import Sandbox-import time--load_dotenv()--logging.basicConfig(level=logging.INFO)--start = time.time()--sbx = Sandbox()--process = sbx.process.start("echo 'hello, world'")--for event in process:- print(event.stderr)--result = process.wait()