Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: Fix block model dump (#2100)
Matthew Zhou4e825a0ef0bb
diff --git a/letta/services/block_manager.py b/letta/services/block_manager.pyindex 8ae76b677..3855f5a61 100644--- a/letta/services/block_manager.py+++ b/letta/services/block_manager.py@@ -28,8 +28,10 @@ class BlockManager:self.update_block(block.id, update_data, actor)else:with self.session_maker() as session:+ # Always write the organization_id+ block.organization_id = actor.organization_iddata = block.model_dump(exclude_none=True)- block = BlockModel(**data, organization_id=actor.organization_id)+ block = BlockModel(**data)block.create(session, actor=actor)return block.to_pydantic()