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