mirror of
https://github.com/langgenius/dify.git
synced 2026-07-26 22:28:32 +08:00
16 lines
469 B
Python
16 lines
469 B
Python
from typing import Any, Protocol
|
|
|
|
from sqlalchemy.orm import Session
|
|
|
|
|
|
class PipelineTemplateRetrievalBase(Protocol):
|
|
"""Interface for pipeline template retrieval."""
|
|
|
|
def get_pipeline_templates(
|
|
self, language: str, current_tenant_id: str | None = None, *, session: Session
|
|
) -> dict[str, Any]: ...
|
|
|
|
def get_pipeline_template_detail(self, template_id: str, *, session: Session) -> dict[str, Any] | None: ...
|
|
|
|
def get_type(self) -> str: ...
|