Files
health-service/routers/agent.py
2026-09-01 23:03:17 +08:00

25 lines
503 B
Python

from fastapi import APIRouter
from service import agent_service
router = APIRouter(prefix="/agent", tags=["Agent"])
@router.post("/tip/generate")
def generate_tip():
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()