Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: Make sure local sandbox is run with all local environment variables (#819)
Matthew Zhou85a0bad9c800
diff --git a/letta/services/tool_execution_sandbox.py b/letta/services/tool_execution_sandbox.pyindex 5016ce1b8..d15b63c93 100644--- a/letta/services/tool_execution_sandbox.py+++ b/letta/services/tool_execution_sandbox.py@@ -225,8 +225,7 @@ class ToolExecutionSandbox:try:# Execute the temp file- with self.temporary_env_vars(env):- result = runpy.run_path(temp_file_path, init_globals=env)+ result = runpy.run_path(temp_file_path, init_globals=env)# Fetch the resultfunc_result = result.get(self.LOCAL_SANDBOX_RESULT_VAR_NAME)