Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

594 B
Raw Blame
"""Read contract for the trigger providers installed in a workspace."""

from typing import Protocol

from core.trigger.entities.api_entities import TriggerProviderApiEntity
from models.provider_ids import TriggerProviderID


class TriggerProviderQuery(Protocol):
    def list(self, *, tenant_id: str) -> list[TriggerProviderApiEntity]: ...

    def get(self, *, tenant_id: str, provider_id: TriggerProviderID) -> TriggerProviderApiEntity: ...

    def get_icon(self, *, tenant_id: str, provider_id: TriggerProviderID) -> str:
        """Return the icon URL, not the icon bytes."""
        ...