mirror of
https://github.com/langgenius/dify.git
synced 2026-03-13 11:07:40 +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>
36 lines
725 B
Python
36 lines
725 B
Python
from pydantic import BaseModel
|
|
|
|
from dify_graph.entities.base_node_data import BaseNodeData
|
|
from dify_graph.enums import 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 = NodeType.VARIABLE_AGGREGATOR
|
|
output_type: str
|
|
variables: list[list[str]]
|
|
advanced_settings: AdvancedSettings | None = None
|