feat: add-preserve_on_migration-to-property-of-block (#2476)

This commit is contained in:
Andy Li
2025-05-29 11:07:45 -07:00
committed by GitHub
parent 275b75901d
commit 5c02467eef
3 changed files with 33 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ class Block(OrganizationMixin, SqlalchemyBase):
is_template: Mapped[bool] = mapped_column(
doc="whether the block is a template (e.g. saved human/persona options as baselines for other templates)", default=False
)
preserve_on_migration: Mapped[bool] = mapped_column(doc="preserve the block on template migration", default=False)
value: Mapped[str] = mapped_column(doc="Text content of the block for the respective section of core memory.")
limit: Mapped[BigInteger] = mapped_column(Integer, default=CORE_MEMORY_BLOCK_CHAR_LIMIT, doc="Character limit of the block.")
metadata_: Mapped[Optional[dict]] = mapped_column(JSON, default={}, doc="arbitrary information related to the block.")