mirror of
https://github.com/langgenius/dify.git
synced 2025-07-26 19:10:33 +00:00
18 lines
452 B
Python
18 lines
452 B
Python
![]() |
from abc import ABC, abstractmethod
|
||
|
|
||
|
|
||
|
class PipelineTemplateRetrievalBase(ABC):
|
||
|
"""Interface for pipeline template retrieval."""
|
||
|
|
||
|
@abstractmethod
|
||
|
def get_pipeline_templates(self, language: str) -> dict:
|
||
|
raise NotImplementedError
|
||
|
|
||
|
@abstractmethod
|
||
|
def get_pipeline_template_detail(self, pipeline_id: str):
|
||
|
raise NotImplementedError
|
||
|
|
||
|
@abstractmethod
|
||
|
def get_type(self) -> str:
|
||
|
raise NotImplementedError
|