Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update example fix
Tomas Valenta60da9d674f55
diff --git a/apps/docs/src/code/js/basics/download_file.js b/apps/docs/src/code/js/basics/download_file.jsindex 26a53dca7..5730e4cc8 100644--- a/apps/docs/src/code/js/basics/download_file.js+++ b/apps/docs/src/code/js/basics/download_file.js@@ -3,7 +3,7 @@ import fs from 'node:fs'const sandbox = await Sandbox.create({ template: 'base' })-const buffer = await sandbox.downloadFile('path/to/remote/file/inside/sandbox') // $HighlightLine+const buffer = await sandbox.downloadFile('path/to/remote/file/inside/sandbox', 'buffer') // $HighlightLine// Save file to local filesystemfs.writeFileSync('path/to/local/file', buffer)