"""Maintained FastAPI entrypoint for the PlantAI-rag cleanup baseline.""" from __future__ import annotations from fastapi import FastAPI from api.kg_routes import router as kg_router from api.methodology_routes import router as methodology_router def create_app() -> FastAPI: app = FastAPI( title="PlantAI-rag API", description="Maintained API surface for the PlantAI-rag open-source cleanup baseline.", version="0.1.0", ) app.include_router(kg_router, prefix="/api/v1") app.include_router(methodology_router, prefix="/api/v1") @app.get("/") async def root() -> dict[str, str]: return { "name": "PlantAI-rag", "status": "ready", "runtime_surface": "maintained_baseline", } @app.get("/health") async def health() -> dict[str, str]: return {"status": "healthy"} return app app = create_app()