Co-authored-by: Sarah Wooders <sarahwooders@gmail.com> Co-authored-by: Matthew Zhou <mattzh1314@gmail.com>
16 lines
392 B
Python
16 lines
392 B
Python
from letta.orm import Tool
|
|
from letta.schemas.tool import Tool as PydanticTool
|
|
from letta.serialize_schemas.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
|