mirror of
				https://github.com/langgenius/dify.git
				synced 2025-10-31 10:53:02 +00:00 
			
		
		
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			448 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|   | from abc import ABC, abstractmethod | ||
|  | 
 | ||
|  | 
 | ||
|  | class RecommendAppRetrievalBase(ABC): | ||
|  |     """Interface for recommend app retrieval.""" | ||
|  | 
 | ||
|  |     @abstractmethod | ||
|  |     def get_recommended_apps_and_categories(self, language: str) -> dict: | ||
|  |         raise NotImplementedError | ||
|  | 
 | ||
|  |     @abstractmethod | ||
|  |     def get_recommend_app_detail(self, app_id: str): | ||
|  |         raise NotImplementedError | ||
|  | 
 | ||
|  |     @abstractmethod | ||
|  |     def get_type(self) -> str: | ||
|  |         raise NotImplementedError |