Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: move user pydantic load into session (#2550)
cthomas36dfbefbb039
diff --git a/letta/services/user_manager.py b/letta/services/user_manager.pyindex e38ae9dcc..c48006ec5 100644--- a/letta/services/user_manager.py+++ b/letta/services/user_manager.py@@ -155,10 +155,10 @@ class UserManager:finally:await session.execute(text("SET LOCAL enable_seqscan = ON"))- if not user:- raise NoResultFound(f"User not found with id={actor_id}")+ if not user:+ raise NoResultFound(f"User not found with id={actor_id}")- return user.to_pydantic()+ return user.to_pydantic()@enforce_types@trace_method