feat: 增加报告智能体

This commit is contained in:
2026-09-03 17:25:06 +08:00
parent cc39d7b19d
commit 38310f7b1c
6 changed files with 104 additions and 88 deletions

View File

@@ -1,5 +1,6 @@
from fastapi import APIRouter
from schema.agent import ReportRequest
from service import agent_service
router = APIRouter(prefix="/agent", tags=["Agent"])
@@ -14,6 +15,7 @@ def generate_tip():
def latest_tip():
return agent_service.get_latest_tip()
@router.post("/recipe/generate")
def generate_recipe():
return agent_service.query_recipe_agent()
@@ -22,3 +24,8 @@ def generate_recipe():
@router.get("/recipe/latest")
def latest_recipe():
return agent_service.get_latest_recipe()
@router.post("/report")
def query_report(req: ReportRequest):
return agent_service.query_report_agent(req)