Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Improve snippets
Tomas Valenta0f82a7e25a78
diff --git a/apps/docs/src/code/js/processes/background_processes.js b/apps/docs/src/code/js/processes/background_processes.jsindex 557894eb5..c0941be0b 100644--- a/apps/docs/src/code/js/processes/background_processes.js+++ b/apps/docs/src/code/js/processes/background_processes.js@@ -25,7 +25,7 @@ const serverRequest = await session.process.start({ cmd: 'curl localhost:8000' }// Wait for the server request to finish runningconst requestOutput = await serverRequest.finished-// Stops the background process (it would otherwise run indefinitely). After this the backgroundServer.output should be populated with stdout and stderr that were outputted until the server was killed+// Stops the background process (it would otherwise run indefinitely)await backgroundServer.kill() // $HighlightLine// Access the server output after the server process is killeddiff --git a/apps/docs/src/code/python/processes/background_processes.py b/apps/docs/src/code/python/processes/background_processes.pyindex 243a9c65d..364230899 100644--- a/apps/docs/src/code/python/processes/background_processes.py+++ b/apps/docs/src/code/python/processes/background_processes.py@@ -27,7 +27,7 @@ async def main():# Wait for the server request to finish runningrequest_output = await server_request.finished- # Stop the background process (it would otherwise run indefinitely). After this the background_server.output should be populated with stdout and stderr that were outputted until the server was killed+ # Stop the background process (it would otherwise run indefinitely)await background_server.kill() # $HighlightLine# Access the server output after the server process is killed