Files
dify/api/repositories/execution_extra_content_repository.py
8cbb6c0130 feat: HITL IM integration (#44864)
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: JzoNg <jzongcode@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-10-30 02:43:31 +00:00

26 lines
713 B
Python

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"]