From ca81366da0be466b8fc4fb2cd218abd937d52d7d Mon Sep 17 00:00:00 2001 From: cthomas Date: Tue, 27 May 2025 14:53:16 -0700 Subject: [PATCH] feat(asyncify): migrate sbox tool exec sync call (#2470) --- letta/services/tool_executor/tool_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/letta/services/tool_executor/tool_executor.py b/letta/services/tool_executor/tool_executor.py index 104a4446..b022aafd 100644 --- a/letta/services/tool_executor/tool_executor.py +++ b/letta/services/tool_executor/tool_executor.py @@ -751,7 +751,7 @@ class SandboxToolExecutor(ToolExecutor): # Update agent memory if needed if tool_execution_result.agent_state is not None: - AgentManager().update_memory_if_changed(agent_state.id, tool_execution_result.agent_state.memory, actor) + await AgentManager().update_memory_if_changed_async(agent_state.id, tool_execution_result.agent_state.memory, actor) return tool_execution_result