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: move groups join on agents to selectin (#2475)

cthomas2d07d95a3d49
diff --git a/letta/orm/agent.py b/letta/orm/agent.py
index e37a5ba20..fa3e48233 100644
--- a/letta/orm/agent.py
+++ b/letta/orm/agent.py
@@ -120,7 +120,7 @@ class Agent(SqlalchemyBase, OrganizationMixin, AsyncAttrs):
)
multi_agent_group: Mapped["Group"] = relationship(
"Group",
- lazy="joined",
+ lazy="selectin",
viewonly=True,
back_populates="manager_agent",
)