MemGPT/letta/serialize_schemas/marshmallow_tool.py
2025-03-24 21:57:52 -07:00

16 lines
422 B
Python

from letta.orm import Tool
from letta.schemas.tool import Tool as PydanticTool
from letta.serialize_schemas.marshmallow_base import BaseSchema
class SerializedToolSchema(BaseSchema):
"""
Marshmallow schema for serializing/deserializing Tool objects.
"""
__pydantic_model__ = PydanticTool
class Meta(BaseSchema.Meta):
model = Tool
exclude = BaseSchema.Meta.exclude + ("is_deleted",)