diff --git a/app/api/router.py b/app/api/router.py new file mode 100644 index 0000000..699f195 --- /dev/null +++ b/app/api/router.py @@ -0,0 +1,14 @@ +"""API 路由聚合""" +from fastapi import APIRouter +from .health import router as health_router +from .agents import router as agents_router +from .chat import router as chat_router +from .tools import router as tools_router +from .workflows import router as workflows_router + +router = APIRouter() +router.include_router(health_router) +router.include_router(agents_router, prefix="/agents", tags=["agents"]) +router.include_router(chat_router, prefix="/conversations", tags=["chat"]) +router.include_router(tools_router, prefix="/tools", tags=["tools"]) +router.include_router(workflows_router, prefix="/workflows", tags=["workflows"])