Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
docs: remove inaccurate set timeout comment (#1059)
Jakub Dobryca556d8b426e
diff --git a/.changeset/funny-foxes-visit.md b/.changeset/funny-foxes-visit.mdnew file mode 100644index 000000000..c72e255c7--- /dev/null+++ b/.changeset/funny-foxes-visit.md@@ -0,0 +1,6 @@+---+'@e2b/python-sdk': patch+'e2b': patch+---++Remove inaccurate set timeout commentdiff --git a/packages/js-sdk/src/sandbox/index.ts b/packages/js-sdk/src/sandbox/index.tsindex 3c5f077bd..23b4564b2 100644--- a/packages/js-sdk/src/sandbox/index.ts+++ b/packages/js-sdk/src/sandbox/index.ts@@ -520,7 +520,6 @@ export class Sandbox extends SandboxApi {/*** Set the timeout of the sandbox.- * After the timeout expires the sandbox will be automatically killed.** This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.setTimeout`.* Maximum time a sandbox can be kept alive is 24 hours (86_400_000 milliseconds) for Pro users and 1 hour (3_600_000 milliseconds) for Hobby users.diff --git a/packages/python-sdk/e2b/sandbox_async/main.py b/packages/python-sdk/e2b/sandbox_async/main.pyindex 455315216..12773db46 100644--- a/packages/python-sdk/e2b/sandbox_async/main.py+++ b/packages/python-sdk/e2b/sandbox_async/main.py@@ -9,6 +9,7 @@ from packaging.version import Versionfrom typing_extensions import Self, Unpackfrom e2b.api.client.types import Unset+from e2b.api.client_async import get_transportfrom e2b.connection_config import ApiParams, ConnectionConfigfrom e2b.envd.api import ENVD_API_HEALTH_ROUTE, ahandle_envd_api_exceptionfrom e2b.envd.versions import ENVD_DEBUG_FALLBACK@@ -20,7 +21,6 @@ from e2b.sandbox_async.commands.command import Commandsfrom e2b.sandbox_async.commands.pty import Ptyfrom e2b.sandbox_async.filesystem.filesystem import Filesystemfrom e2b.sandbox_async.sandbox_api import SandboxApi, SandboxInfo-from e2b.api.client_async import get_transportlogger = logging.getLogger(__name__)@@ -351,7 +351,6 @@ class AsyncSandbox(SandboxApi):) -> None:"""Set the timeout of the sandbox.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.@@ -369,7 +368,6 @@ class AsyncSandbox(SandboxApi):) -> None:"""Set the timeout of the specified sandbox.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.@@ -387,7 +385,6 @@ class AsyncSandbox(SandboxApi):) -> None:"""Set the timeout of the specified sandbox.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.diff --git a/packages/python-sdk/e2b/sandbox_sync/main.py b/packages/python-sdk/e2b/sandbox_sync/main.pyindex 025838c1a..032353e84 100644--- a/packages/python-sdk/e2b/sandbox_sync/main.py+++ b/packages/python-sdk/e2b/sandbox_sync/main.py@@ -9,6 +9,7 @@ from packaging.version import Versionfrom typing_extensions import Self, Unpackfrom e2b.api.client.types import Unset+from e2b.api.client_sync import get_transportfrom e2b.connection_config import ApiParams, ConnectionConfigfrom e2b.envd.api import ENVD_API_HEALTH_ROUTE, handle_envd_api_exceptionfrom e2b.envd.versions import ENVD_DEBUG_FALLBACK@@ -20,7 +21,6 @@ from e2b.sandbox_sync.commands.command import Commandsfrom e2b.sandbox_sync.commands.pty import Ptyfrom e2b.sandbox_sync.filesystem.filesystem import Filesystemfrom e2b.sandbox_sync.sandbox_api import SandboxApi, SandboxInfo-from e2b.api.client_sync import get_transportlogger = logging.getLogger(__name__)@@ -350,7 +350,6 @@ class Sandbox(SandboxApi):) -> None:"""Set the timeout of the sandbox.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.@@ -368,7 +367,6 @@ class Sandbox(SandboxApi):) -> None:"""Set the timeout of the sandbox specified by sandbox ID.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.@@ -386,7 +384,6 @@ class Sandbox(SandboxApi):) -> None:"""Set the timeout of the sandbox.- After the timeout expires, the sandbox will be automatically killed.This method can extend or reduce the sandbox timeout set when creating the sandbox or from the last call to `.set_timeout`.The maximum time a sandbox can be kept alive is 24 hours (86_400 seconds) for Pro users and 1 hour (3_600 seconds) for Hobby users.