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 batch items selectin from agents model (#3422)

cthomas1c3275b3c9ff
diff --git a/letta/orm/agent.py b/letta/orm/agent.py
index ce51d7292..8713506d1 100644
--- a/letta/orm/agent.py
+++ b/letta/orm/agent.py
@@ -138,7 +138,7 @@ class Agent(SqlalchemyBase, OrganizationMixin, AsyncAttrs):
viewonly=True,
back_populates="manager_agent",
)
- batch_items: Mapped[List["LLMBatchItem"]] = relationship("LLMBatchItem", back_populates="agent", lazy="selectin")
+ batch_items: Mapped[List["LLMBatchItem"]] = relationship("LLMBatchItem", back_populates="agent", lazy="raise")
file_agents: Mapped[List["FileAgent"]] = relationship(
"FileAgent",
back_populates="agent",
diff --git a/letta/serialize_schemas/marshmallow_agent.py b/letta/serialize_schemas/marshmallow_agent.py
index 55003db10..b1340071d 100644
--- a/letta/serialize_schemas/marshmallow_agent.py
+++ b/letta/serialize_schemas/marshmallow_agent.py
@@ -135,4 +135,5 @@ class MarshmallowAgentSchema(BaseSchema):
"identities",
"is_deleted",
"groups",
+ "batch_items",
)