cognee/cognee/api/DTO.py
Boris 1eb4429c5c
feat: improve API request and response models and docs (#154)
* feat: improve API request and response models and docs
2024-10-14 13:38:36 +02:00

15 lines
364 B
Python

from pydantic import BaseModel, ConfigDict
from pydantic.alias_generators import to_camel, to_snake
class OutDTO(BaseModel):
model_config = ConfigDict(
alias_generator = to_camel,
populate_by_name = True,
)
class InDTO(BaseModel):
model_config = ConfigDict(
alias_generator = to_camel,
populate_by_name = True,
)