Files
health-service/routers/agent.py
2026-08-31 15:22:00 +08:00

16 lines
305 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.generate_tip_agent()
@router.get("/tip/latest")
def latest_tip():
return agent_service.get_latest_tip()