feat: 增加报告智能体
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user