entities.py 673 B

12345678910111213141516171819202122232425
  1. from pydantic import BaseModel, Field
  2. from core.workflow.entities.variable_entities import VariableSelector
  3. from core.workflow.nodes.base import BaseNodeData
  4. class EndNodeData(BaseNodeData):
  5. """
  6. END Node Data.
  7. """
  8. outputs: list[VariableSelector]
  9. class EndStreamParam(BaseModel):
  10. """
  11. EndStreamParam entity
  12. """
  13. end_dependencies: dict[str, list[str]] = Field(
  14. ..., description="end dependencies (end node id -> dependent node ids)"
  15. )
  16. end_stream_variable_selector_mapping: dict[str, list[list[str]]] = Field(
  17. ..., description="end stream variable selector mapping (end node id -> stream variable selectors)"
  18. )