Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Merge branch 'main' into docs-copy
tizkovaterezaad67f461a4d9
diff --cc apps/docs/src/app/sandbox/api/reconnect/page.mdxindex 79cd60ffc,cbec64456..95f522563--- a/apps/docs/src/app/sandbox/api/reconnect/page.mdx+++ b/apps/docs/src/app/sandbox/api/reconnect/page.mdx@@@ -12,27 -12,10 +12,28 @@@ The duration limit is 1 hour. If you ne## Keep sandbox alive-The example bellow shows how to disconnect from a running sandbox and reconnect to it again.-You will have to call `keep_alive` method on the sandbox instance to keep it alive for specified time. You can then disconnect from the sandbox and reconnect to it from anywhere.+The example below shows how to disconnect from a running sandbox and reconnect to it again while keeping the sandbox alive.<CodeGroupAutoload- path="reconnect/reconnect"+ path="reconnect/reconnect_1"+ isRunnable={false}+/>++Call the `keep_alive` method on the sandbox instance to keep it alive. You can specify a red duration, as a multiple of a default time unit, which is+- 1 ms in JS+- 1 s in Python.++You then disconnect from the sandbox.++<CodeGroupAutoload+ path="reconnect/reconnect_2"+ isRunnable={false}+/>++You can then reconnect to the sandbox from anywhere.++<CodeGroupAutoload+ path="reconnect/reconnect_3"++isRunnable={false}/>