You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/services/rag_pipeline/pipeline_template/pipeline_template_base.py

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