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.

713 B
Raw Blame
from __future__ import annotations

from collections.abc import Sequence
from dataclasses import dataclass
from typing import Protocol

from core.entities.execution_extra_content import ExecutionExtraContentDomainModel


@dataclass(frozen=True, slots=True)
class HumanInputFormReference:
    """A stored approval reference whose form is outside the legacy table."""

    workflow_run_id: str
    form_id: str


type StoredExecutionExtraContent = ExecutionExtraContentDomainModel | HumanInputFormReference


class ExecutionExtraContentRepository(Protocol):
    def get_by_message_ids(self, message_ids: Sequence[str]) -> list[list[StoredExecutionExtraContent]]: ...


__all__ = ["ExecutionExtraContentRepository"]