Files
letta-server/letta/serialize_schemas/block.py
cthomas b09c519fa6 chore: bump version to 0.6.36 (#2469)
Co-authored-by: Sarah Wooders <sarahwooders@gmail.com>
Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
2025-03-04 16:21:54 -08:00

16 lines
420 B
Python

from letta.orm.block import Block
from letta.schemas.block import Block as PydanticBlock
from letta.serialize_schemas.base import BaseSchema
class SerializedBlockSchema(BaseSchema):
"""
Marshmallow schema for serializing/deserializing Block objects.
"""
__pydantic_model__ = PydanticBlock
class Meta(BaseSchema.Meta):
model = Block
exclude = BaseSchema.Meta.exclude + ("agents",)