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(asyncify): migrate sbox tool exec sync call (#2470)

cthomas587a6d1a2a13
diff --git a/letta/services/tool_executor/tool_executor.py b/letta/services/tool_executor/tool_executor.py
index 104a44466..b022aafd7 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