Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix: resuming sandbox docs can't print sandbox id (#912)
uucloud2fc839197def
diff --git a/apps/web/src/app/(docs)/docs/sandbox/persistence/page.mdx b/apps/web/src/app/(docs)/docs/sandbox/persistence/page.mdxindex 8429fc9b2..d31a49769 100644--- a/apps/web/src/app/(docs)/docs/sandbox/persistence/page.mdx+++ b/apps/web/src/app/(docs)/docs/sandbox/persistence/page.mdx@@ -119,7 +119,7 @@ print('Sandbox created', sbx.sandbox_id)# Pause the sandbox# You can save the sandbox ID in your database to resume the sandbox latersbx.beta_pause()-print('Sandbox paused', sandbox_id)+print('Sandbox paused', sbx.sandbox_id)# Connect to the sandbox (it will automatically resume the sandbox, if paused)same_sbx = sbx.connect() # $HighlightLine@@ -274,4 +274,4 @@ If you resume the sandbox, the service will be accessible again but you need to- Pausing a sandbox takes about 4 seconds per 1 GiB of RAM- Resuming a sandbox takes about 1 second- Sandbox can be used up to 30 days- - After 30 days from the initial sandbox create call, the data may be deleted and you will not be able to resume it. Attempting to resume a sandbox that was deleted or does not exist will result in the `NotFoundError` in the JavaScript SDK or the `NotFoundException` in the Python SDK\ No newline at end of file+ - After 30 days from the initial sandbox create call, the data may be deleted and you will not be able to resume it. Attempting to resume a sandbox that was deleted or does not exist will result in the `NotFoundError` in the JavaScript SDK or the `NotFoundException` in the Python SDK