Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add docstrings
Tomas Valenta70a380636a1f
diff --git a/packages/js-sdk/src/sandbox/sandboxConnection.ts b/packages/js-sdk/src/sandbox/sandboxConnection.tsindex 245ab254c..86fcf0e9b 100644--- a/packages/js-sdk/src/sandbox/sandboxConnection.ts+++ b/packages/js-sdk/src/sandbox/sandboxConnection.ts@@ -64,6 +64,9 @@ export interface SandboxConnectionOpts {*/id?: string;apiKey?: string;+ /**+ * Domain to use for the API requests. If not provided, the `E2B_DOMAIN` environment variable will be used.+ */domain?: string;cwd?: string;envVars?: EnvVars;@@ -162,6 +165,7 @@ export class SandboxConnection {* List all running sandboxes** @param apiKey API key to use for authentication. If not provided, the `E2B_API_KEY` environment variable will be used.+ * @param domain Domain to use for the API requests. If not provided, the `E2B_DOMAIN` environment variable will be used.*/static async list(apiKey?: string, domain?: string): Promise<RunningSandbox[]> {apiKey = getApiKey(apiKey)@@ -207,6 +211,7 @@ export class SandboxConnection {* List all running sandboxes* @param sandboxID ID of the sandbox to kill* @param apiKey API key to use for authentication. If not provided, the `E2B_API_KEY` environment variable will be used.+ * @param domain Domain to use for the API requests. If not provided, the `E2B_DOMAIN` environment variable will be used.*/static async kill(sandboxID: string, apiKey?: string, domain?: string): Promise<void> {apiKey = getApiKey(apiKey)