feat: remove batch items selectin from agents model (#3422)

This commit is contained in:
cthomas
2025-07-19 21:59:40 -07:00
committed by GitHub
parent 89f86b4263
commit 1c3275b3c9
2 changed files with 2 additions and 1 deletions

View File

@@ -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",

View File

@@ -135,4 +135,5 @@ class MarshmallowAgentSchema(BaseSchema):
"identities",
"is_deleted",
"groups",
"batch_items",
)