SurfSense/surfsense_backend/app/schemas/surfsense_docs.py
DESKTOP-RTLN3BA\$punk 73a57589ac chore: linting
2026-01-12 14:17:15 -08:00

26 lines
535 B
Python

"""
Schemas for Surfsense documentation.
"""
from pydantic import BaseModel, ConfigDict
class SurfsenseDocsChunkRead(BaseModel):
"""Schema for a Surfsense docs chunk."""
id: int
content: str
model_config = ConfigDict(from_attributes=True)
class SurfsenseDocsDocumentWithChunksRead(BaseModel):
"""Schema for a Surfsense docs document with its chunks."""
id: int
title: str
source: str
content: str
chunks: list[SurfsenseDocsChunkRead]
model_config = ConfigDict(from_attributes=True)