Skip to content

armgit / letta

Public Imported from GitHub
0

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 Zhouda780793a703
diff --git a/letta/services/tool_execution_sandbox.py b/letta/services/tool_execution_sandbox.py
index 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 result
func_result = result.get(self.LOCAL_SANDBOX_RESULT_VAR_NAME)