mirror of
https://github.com/langgenius/dify.git
synced 2026-03-15 03:47:10 +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>
19 lines
468 B
Python
19 lines
468 B
Python
from collections.abc import Sequence
|
|
from enum import StrEnum
|
|
|
|
from dify_graph.entities.base_node_data import BaseNodeData
|
|
from dify_graph.enums import NodeType
|
|
|
|
|
|
class WriteMode(StrEnum):
|
|
OVER_WRITE = "over-write"
|
|
APPEND = "append"
|
|
CLEAR = "clear"
|
|
|
|
|
|
class VariableAssignerData(BaseNodeData):
|
|
type: NodeType = NodeType.VARIABLE_ASSIGNER
|
|
assigned_variable_selector: Sequence[str]
|
|
write_mode: WriteMode
|
|
input_variable_selector: Sequence[str]
|