Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Cleanup; Add missing docs
Tomas Valentaeeeacf196ad5
diff --git a/packages/js-sdk/src/index.ts b/packages/js-sdk/src/index.tsindex da54084b0..f6a0d7ce5 100644--- a/packages/js-sdk/src/index.ts+++ b/packages/js-sdk/src/index.ts@@ -21,7 +21,6 @@ export type { ProcessManager } from './sandbox/process'export type { EnvVars } from './sandbox/envVars'export { runCode, CodeRuntime } from './runCode' // Export CodeRuntime enum as value, not as type, so it can be actually used in consumer codeimport { Sandbox } from './sandbox/index'-// export { runCmd } from './runCmd'import { DataAnalysis } from './templates/dataAnalysis'export { DataAnalysis as CodeInterpreter }@@ -32,5 +31,3 @@ export type { Action } from './sandbox/index'export { Sandbox }export default Sandbox--// export { Sandbox }diff --git a/packages/js-sdk/src/runCmd.ts b/packages/js-sdk/src/runCmd.tsindex becaf62a9..b559b209d 100644--- a/packages/js-sdk/src/runCmd.ts+++ b/packages/js-sdk/src/runCmd.ts@@ -2,7 +2,6 @@ import { Sandbox } from './sandbox'export async function runCmd(command: string, opts?: { apiKey?: string }) {const sandbox = await Sandbox.create({- template: 'Bash',apiKey: opts?.apiKey || process?.env?.E2B_API_KEY || '', // Sandbox.create will throw an error if the API key is not provided so no need to check here})diff --git a/packages/js-sdk/src/sandbox/sandboxConnection.ts b/packages/js-sdk/src/sandbox/sandboxConnection.tsindex a6139bf3e..b09c69a0c 100644--- a/packages/js-sdk/src/sandbox/sandboxConnection.ts+++ b/packages/js-sdk/src/sandbox/sandboxConnection.ts@@ -34,6 +34,11 @@ export interface Logger {}export interface SandboxConnectionOpts {+ /**+ * Sandbox Template ID or name.+ *+ * If not specified, the 'base' template will be used.+ */template?: string;/*** @deprecated Use `template` instead.diff --git a/packages/python-sdk/e2b/sandbox/main.py b/packages/python-sdk/e2b/sandbox/main.pyindex 15f226ce2..5b8a1216e 100644--- a/packages/python-sdk/e2b/sandbox/main.py+++ b/packages/python-sdk/e2b/sandbox/main.py@@ -75,7 +75,7 @@ class Sandbox(SandboxConnection):Create a new cloud sandbox.:param id: [Deprecated] Use `template` param instead.- :param template: ID of the sandbox template or the name of prepared template.+ :param template: ID of the sandbox template or the name of prepared template. If not specified a 'base' template will be used.Can be one of the following premade sandbox templates or a custom sandbox template ID:- `base` - A basic sandbox with a Linux environment- `Python3-DataAnalysis` - A Python3 sandbox with data analysis tools