Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: variable aggregator with group and file raise exception (#20581)

非法操作ca0b268ae558
diff --git a/api/core/workflow/nodes/variable_aggregator/entities.py b/api/core/workflow/nodes/variable_aggregator/entities.py
index 9e58f5e9440..f4577d75737 100644
--- a/api/core/workflow/nodes/variable_aggregator/entities.py
+++ b/api/core/workflow/nodes/variable_aggregator/entities.py
@@ -1,7 +1,8 @@
-from typing import Literal, Optional
+from typing import Optional
from pydantic import BaseModel
+from core.variables.types import SegmentType
from core.workflow.nodes.base import BaseNodeData
@@ -17,7 +18,7 @@ class AdvancedSettings(BaseModel):
Group.
"""
- output_type: Literal["string", "number", "object", "array[string]", "array[number]", "array[object]"]
+ output_type: SegmentType
variables: list[list[str]]
group_name: str