feat: remove agents SELECTIN from blocks model (#3427)

This commit is contained in:
cthomas
2025-07-19 23:04:33 -07:00
committed by GitHub
parent 7a37557bb9
commit 4f37a39741
3 changed files with 26 additions and 10 deletions

View File

@@ -59,7 +59,7 @@ class Block(OrganizationMixin, SqlalchemyBase):
agents: Mapped[List["Agent"]] = relationship(
"Agent",
secondary="blocks_agents",
lazy="selectin",
lazy="raise",
passive_deletes=True, # Ensures SQLAlchemy doesn't fetch blocks_agents rows before deleting
back_populates="core_memory",
doc="Agents associated with this block.",