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()