Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
New docs structure
Vasek Mlejnsky2f2caa304540
diff --git a/.vscode/settings.json b/.vscode/settings.jsonindex 67bd81976..0e2597e79 100644--- a/.vscode/settings.json+++ b/.vscode/settings.json@@ -42,7 +42,7 @@"typescript.tsdk": "node_modules/typescript/lib","css.validate": false,"tailwindCSS.validate": true,- "editor.formatOnSave": false,+ "editor.formatOnSave": true,"editor.codeActionsOnSave": {"source.fixAll.eslint": true},diff --git a/apps/docs/src/app/playgrounds/filesystem/page.mdx b/apps/docs/src/app/playgrounds/filesystem/page.mdxindex b00df9d11..2cd1ffafa 100644--- a/apps/docs/src/app/playgrounds/filesystem/page.mdx+++ b/apps/docs/src/app/playgrounds/filesystem/page.mdx@@ -8,8 +8,8 @@ export const sections = [{ title: 'Create directory', id: 'create-directory' },{ title: 'Write to file', id: 'write-to-file' },{ title: 'Read from file', id: 'read-file' },- { title: 'Write bytes', id: 'write-bytes' },- { title: 'Read bytes', id: 'read-bytes' },+ // { title: 'Write bytes', id: 'write-bytes' },+ // { title: 'Read bytes', id: 'read-bytes' },{ title: 'Watch directory for changes', id: 'watch-directory-for-changes' },]@@ -32,7 +32,7 @@ When writing to a file that's in a directory that doesn't exist, you'll get an e<CodeGroupAutoload path="basics/fs_write" isRunnable={false} />-## Read file+## Read from file<CodeGroupAutoload path="basics/fs_read" isRunnable={true} />## Watch directory for changesdiff --git a/apps/docs/src/code/python/basics/fs_read_bytes.py b/apps/docs/src/code/python/basics/fs_read_bytes.pynew file mode 100644index 000000000..6845f1c6b--- /dev/null+++ b/apps/docs/src/code/python/basics/fs_read_bytes.py@@ -0,0 +1,13 @@+import asyncio+from os import getenv+from e2b import Session++E2B_API_KEY = getenv("E2B_API_KEY")++async def main():+ session = await Session.create(id="Nodejs", api_key=E2B_API_KEY)+++ await session.close()++asyncio.run(main())