Files
urbanLifeline/dify/api/services/recommend_app/recommend_app_base.py

18 lines
440 B
Python
Raw Permalink Normal View History

2025-12-01 17:21:38 +08:00
from abc import ABC, abstractmethod
class RecommendAppRetrievalBase(ABC):
"""Interface for recommend app retrieval."""
@abstractmethod
def get_recommended_apps_and_categories(self, language: str):
raise NotImplementedError
@abstractmethod
def get_recommend_app_detail(self, app_id: str):
raise NotImplementedError
@abstractmethod
def get_type(self) -> str:
raise NotImplementedError