feat: 增加食谱Agent

This commit is contained in:
2026-09-01 23:03:17 +08:00
parent 825e097989
commit e71a26e761
5 changed files with 95 additions and 12 deletions

View File

@@ -7,9 +7,18 @@ router = APIRouter(prefix="/agent", tags=["Agent"])
@router.post("/tip/generate")
def generate_tip():
return agent_service.generate_tip_agent()
return agent_service.query_tip_agent()
@router.get("/tip/latest")
def latest_tip():
return agent_service.get_latest_tip()
@router.post("/recipe/generate")
def generate_recipe():
return agent_service.query_recipe_agent()
@router.get("/recipe/latest")
def latest_recipe():
return agent_service.get_latest_recipe()