mirror of
https://github.com/langgenius/dify.git
synced 2026-03-06 08:06:37 +08:00
25 lines
635 B
Python
25 lines
635 B
Python
from pydantic import BaseModel, Field
|
|
|
|
from dify_graph.nodes.base.entities import BaseNodeData, OutputVariableEntity
|
|
|
|
|
|
class EndNodeData(BaseNodeData):
|
|
"""
|
|
END Node Data.
|
|
"""
|
|
|
|
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)"
|
|
)
|