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.

fix: agent-runs relationship load causing timeouts [LET-6694] (#8129)

cthomasb6535b759021
diff --git a/letta/orm/agent.py b/letta/orm/agent.py
index 216968dfa..4c325253e 100644
--- a/letta/orm/agent.py
+++ b/letta/orm/agent.py
@@ -147,7 +147,7 @@ class Agent(SqlalchemyBase, OrganizationMixin, ProjectMixin, TemplateEntityMixin
"Run",
back_populates="agent",
cascade="all, delete-orphan",
- lazy="selectin",
+ lazy="raise",
doc="Runs associated with the agent.",
)
identities: Mapped[List["Identity"]] = relationship(