You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pipeline_template_base.py 498B

123456789101112131415161718
  1. from abc import ABC, abstractmethod
  2. from typing import Optional
  3. class PipelineTemplateRetrievalBase(ABC):
  4. """Interface for pipeline template retrieval."""
  5. @abstractmethod
  6. def get_pipeline_templates(self, language: str) -> dict:
  7. raise NotImplementedError
  8. @abstractmethod
  9. def get_pipeline_template_detail(self, template_id: str) -> Optional[dict]:
  10. raise NotImplementedError
  11. @abstractmethod
  12. def get_type(self) -> str:
  13. raise NotImplementedError