mirror of
https://github.com/langgenius/dify.git
synced 2026-03-04 15:26:21 +08:00
23 lines
598 B
Python
23 lines
598 B
Python
from dify_graph.enums import NodeType, WorkflowNodeExecutionStatus
|
|
from dify_graph.node_events import NodeRunResult
|
|
from dify_graph.nodes.base.node import Node
|
|
from dify_graph.nodes.iteration.entities import IterationStartNodeData
|
|
|
|
|
|
class IterationStartNode(Node[IterationStartNodeData]):
|
|
"""
|
|
Iteration Start Node.
|
|
"""
|
|
|
|
node_type = NodeType.ITERATION_START
|
|
|
|
@classmethod
|
|
def version(cls) -> str:
|
|
return "1"
|
|
|
|
def _run(self) -> NodeRunResult:
|
|
"""
|
|
Run the node.
|
|
"""
|
|
return NodeRunResult(status=WorkflowNodeExecutionStatus.SUCCEEDED)
|