2025-04-14 11:10:44 +08:00
|
|
|
from abc import ABC, abstractmethod
|
2025-04-14 18:17:17 +08:00
|
|
|
from typing import Optional
|
2025-04-14 11:10:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
class PipelineTemplateRetrievalBase(ABC):
|
|
|
|
"""Interface for pipeline template retrieval."""
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def get_pipeline_templates(self, language: str) -> dict:
|
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
@abstractmethod
|
2025-04-14 18:17:17 +08:00
|
|
|
def get_pipeline_template_detail(self, template_id: str) -> Optional[dict]:
|
2025-04-14 11:10:44 +08:00
|
|
|
raise NotImplementedError
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def get_type(self) -> str:
|
|
|
|
raise NotImplementedError
|