feat: 增加食谱Agent
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user