mirror of
https://github.com/langgenius/dify.git
synced 2026-03-14 19:38:37 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
28 lines
753 B
Python
28 lines
753 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from dify_graph.entities.base_node_data import BaseNodeData
|
|
from dify_graph.enums import NodeType
|
|
from dify_graph.nodes.base.entities import OutputVariableEntity
|
|
|
|
|
|
class EndNodeData(BaseNodeData):
|
|
"""
|
|
END Node Data.
|
|
"""
|
|
|
|
type: NodeType = NodeType.END
|
|
outputs: list[OutputVariableEntity]
|
|
|
|
|
|
class EndStreamParam(BaseModel):
|
|
"""
|
|
EndStreamParam entity
|
|
"""
|
|
|
|
end_dependencies: dict[str, list[str]] = Field(
|
|
..., description="end dependencies (end node id -> dependent node ids)"
|
|
)
|
|
end_stream_variable_selector_mapping: dict[str, list[list[str]]] = Field(
|
|
..., description="end stream variable selector mapping (end node id -> stream variable selectors)"
|
|
)
|