Files
patchy631--ai-engineering-hub/documentation-writer-flow/schemas/models.py
T
2026-07-13 12:37:47 +08:00

16 lines
384 B
Python

from pydantic import BaseModel
from typing import List
# Define data structures to capture documentation planning output
class DocItem(BaseModel):
"""Represents a documentation item"""
title: str
description: str
prerequisites: str
examples: List[str]
goal: str
class DocPlan(BaseModel):
"""Documentation plan"""
overview: str
docs: List[DocItem]