您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

pipeline_template_base.py 498B

6 个月前
6 个月前
6 个月前
6 个月前
6 个月前
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