Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update documentation highlights
Jakub Dobrý225c156ad594
diff --git a/apps/web/src/app/(docs)/docs/filesystem/watch/page.mdx b/apps/web/src/app/(docs)/docs/filesystem/watch/page.mdxindex 86fb26f92..eaec2496e 100644--- a/apps/web/src/app/(docs)/docs/filesystem/watch/page.mdx+++ b/apps/web/src/app/(docs)/docs/filesystem/watch/page.mdx@@ -64,7 +64,7 @@ const handle = await sandbox.files.watchDir(dirname, async (event) => {})// Trigger file write event-await sandbox.files.write(`${dirname}/my-folder/my-file`, 'hello')+await sandbox.files.write(`${dirname}/my-folder/my-file`, 'hello') // $HighlightLine``````pythonfrom e2b_code_interpreter import Sandbox@@ -75,7 +75,7 @@ dirname = '/home/user'# Watch directory for changeshandle = sandbox.files.watch_dir(dirname, recursive=True) # $HighlightLine# Trigger file write event-sandbox.files.write(f"{dirname}/my-folder/my-file", "hello")+sandbox.files.write(f"{dirname}/my-folder/my-file", "hello") # $HighlightLine# Retrieve the latest new events since the last `get_new_events()` callevents = handle.get_new_events()