Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Fix max duration time
Jakub Novak30bb211ea4c6
diff --git a/packages/python-sdk/e2b/sandbox/sandbox_connection.py b/packages/python-sdk/e2b/sandbox/sandbox_connection.pyindex 223fc0b7f..9e77a063d 100644--- a/packages/python-sdk/e2b/sandbox/sandbox_connection.py+++ b/packages/python-sdk/e2b/sandbox/sandbox_connection.py@@ -155,7 +155,7 @@ class SandboxConnection:return hostnamedef keep_alive(self, duration: int) -> None:- if not 0 <= duration < 3600:+ if not 0 <= duration <= 3600:raise ValueError("Duration must be between 0 and 3600 seconds")with E2BApiClient(api_key=self._api_key) as api_client: