mirror of
https://github.com/langgenius/dify.git
synced 2026-04-20 18:57:19 +08:00
refactor(api): rename dify_graph to graphon (#34095)
This commit is contained in:
22
api/graphon/nodes/loop/loop_start_node.py
Normal file
22
api/graphon/nodes/loop/loop_start_node.py
Normal file
@ -0,0 +1,22 @@
|
||||
from graphon.enums import BuiltinNodeTypes, WorkflowNodeExecutionStatus
|
||||
from graphon.node_events import NodeRunResult
|
||||
from graphon.nodes.base.node import Node
|
||||
from graphon.nodes.loop.entities import LoopStartNodeData
|
||||
|
||||
|
||||
class LoopStartNode(Node[LoopStartNodeData]):
|
||||
"""
|
||||
Loop Start Node.
|
||||
"""
|
||||
|
||||
node_type = BuiltinNodeTypes.LOOP_START
|
||||
|
||||
@classmethod
|
||||
def version(cls) -> str:
|
||||
return "1"
|
||||
|
||||
def _run(self) -> NodeRunResult:
|
||||
"""
|
||||
Run the node.
|
||||
"""
|
||||
return NodeRunResult(status=WorkflowNodeExecutionStatus.SUCCEEDED)
|
||||
Reference in New Issue
Block a user