From 69b99ba6ea3281dabd1f5bc076c3cd84e480e409 Mon Sep 17 00:00:00 2001 From: Matthew Zhou Date: Mon, 13 Jan 2025 16:11:24 -1000 Subject: [PATCH] fix: Force recreate all e2b sandboxes on tool execution (#637) --- letta/services/tool_execution_sandbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/services/tool_execution_sandbox.py b/letta/services/tool_execution_sandbox.py index 3e68ad29..1d7b0d73 100644 --- a/letta/services/tool_execution_sandbox.py +++ b/letta/services/tool_execution_sandbox.py @@ -38,7 +38,7 @@ class ToolExecutionSandbox: # We make this a long random string to avoid collisions with any variables in the user's code LOCAL_SANDBOX_RESULT_VAR_NAME = "result_ZQqiequkcFwRwwGQMqkt" - def __init__(self, tool_name: str, args: dict, user: User, force_recreate=False, tool_object: Optional[Tool] = None): + def __init__(self, tool_name: str, args: dict, user: User, force_recreate=True, tool_object: Optional[Tool] = None): self.tool_name = tool_name self.args = args self.user = user