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: Remove extraneous session commits (#3078)

Matthew Zhou6e04fb093056
diff --git a/letta/services/agent_manager.py b/letta/services/agent_manager.py
index 8cbe44ee7..0c83848b1 100644
--- a/letta/services/agent_manager.py
+++ b/letta/services/agent_manager.py
@@ -2051,7 +2051,11 @@ class AgentManager:
except NoResultFound:
# Agent might not exist anymore, skip
continue
- session.commit()
+
+ # TODO: @andy/caren
+ # TODO: Ideally we do two no commits on the update_async calls, and then commit here - but that errors for some reason?
+ # TODO: I have too many things rn so lets look at this later
+ # await session.commit()
return await agent.to_pydantic_async()