mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-07 21:11:45 +08:00
19 lines
498 B
Python
19 lines
498 B
Python
from abc import ABC, abstractmethod
|
|
from typing import Optional
|
|
|
|
|
|
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, template_id: str) -> Optional[dict]:
|
|
raise NotImplementedError
|
|
|
|
@abstractmethod
|
|
def get_type(self) -> str:
|
|
raise NotImplementedError
|