- from fastapi import FastAPI
- from app.api import health
- app = FastAPI(title="cfc-langgraph", version="0.1.0")
- app.include_router(health.router)
- @app.on_event("startup")
- async def startup():
- pass # 后续 Phase 在此初始化 RAG / Agent
- @app.on_event("shutdown")
- async def shutdown():
- pass # 后续 Phase 在此清理资源
|