Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Update env vars when running saved code
Tomas Valenta1ac9a51f0529
diff --git a/api-service/codegen/tools/playground/tools/code.py b/api-service/codegen/tools/playground/tools/code.pyindex 4e35041ed..a7f49ec7e 100644--- a/api-service/codegen/tools/playground/tools/code.py+++ b/api-service/codegen/tools/playground/tools/code.py@@ -26,6 +26,9 @@ def create_code_tools(playground: NodeJSPlayground):@async_tool("RunSavedCode")async def run_saved_code(empty: str) -> str:"""Run JavaScript code that is inside the index.mjs. The tool takes no input."""++ await playground.update_envs()+output = await playground.run_saved_javascript_code()return encode_command_output(output)