mirror of
https://github.com/langgenius/dify.git
synced 2026-03-17 04:47:50 +08:00
36 lines
751 B
Python
36 lines
751 B
Python
from pydantic import BaseModel
|
|
|
|
from dify_graph.entities.base_node_data import BaseNodeData
|
|
from dify_graph.enums import BuiltinNodeTypes, NodeType
|
|
from dify_graph.variables.types import SegmentType
|
|
|
|
|
|
class AdvancedSettings(BaseModel):
|
|
"""
|
|
Advanced setting.
|
|
"""
|
|
|
|
group_enabled: bool
|
|
|
|
class Group(BaseModel):
|
|
"""
|
|
Group.
|
|
"""
|
|
|
|
output_type: SegmentType
|
|
variables: list[list[str]]
|
|
group_name: str
|
|
|
|
groups: list[Group]
|
|
|
|
|
|
class VariableAggregatorNodeData(BaseNodeData):
|
|
"""
|
|
Variable Aggregator Node Data.
|
|
"""
|
|
|
|
type: NodeType = BuiltinNodeTypes.VARIABLE_AGGREGATOR
|
|
output_type: str
|
|
variables: list[list[str]]
|
|
advanced_settings: AdvancedSettings | None = None
|