Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: Restore local sandbox execution (#822)
Matthew Zhoufb691ac4b79a
diff --git a/letta/server/server.py b/letta/server/server.pyindex 35c2e16c3..4ff2bccfd 100644--- a/letta/server/server.py+++ b/letta/server/server.py@@ -207,7 +207,7 @@ if settings.letta_pg_uri_no_default:else:# TODO: don't rely on config storageengine_path = "sqlite:///" + os.path.join(config.recall_storage_path, "sqlite.db")- print("Creating sqlite engine", engine_path)+ logger.info("Creating sqlite engine " + engine_path)engine = create_engine(engine_path)diff --git a/letta/services/tool_execution_sandbox.py b/letta/services/tool_execution_sandbox.pyindex d15b63c93..5016ce1b8 100644--- a/letta/services/tool_execution_sandbox.py+++ b/letta/services/tool_execution_sandbox.py@@ -225,7 +225,8 @@ class ToolExecutionSandbox:try:# Execute the temp file- result = runpy.run_path(temp_file_path, init_globals=env)+ with self.temporary_env_vars(env):+ result = runpy.run_path(temp_file_path, init_globals=env)# Fetch the resultfunc_result = result.get(self.LOCAL_SANDBOX_RESULT_VAR_NAME)