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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(variables): NoneVariable should inherit from NoneSegment. (#6584)
-LAN-85a883e281f9
diff --git a/api/core/app/segments/types.py b/api/core/app/segments/types.pyindex 346b6596016..ebcbf507c62 100644--- a/api/core/app/segments/types.py+++ b/api/core/app/segments/types.py@@ -2,17 +2,10 @@ from enum import Enumclass SegmentType(str, Enum):- STRING = 'string'+ NONE = 'none'NUMBER = 'number'- FILE = 'file'-+ STRING = 'string'SECRET = 'secret'-- OBJECT = 'object'-ARRAY = 'array'- ARRAY_STRING = 'array[string]'- ARRAY_NUMBER = 'array[number]'- ARRAY_OBJECT = 'array[object]'- ARRAY_FILE = 'array[file]'- NONE = 'none'\ No newline at end of file+ OBJECT = 'object'+ FILE = 'file'diff --git a/api/core/app/segments/variables.py b/api/core/app/segments/variables.pyindex 02c06074ab1..b8b92afe301 100644--- a/api/core/app/segments/variables.py+++ b/api/core/app/segments/variables.py@@ -6,7 +6,7 @@ from pydantic import Fieldfrom core.file.file_obj import FileVarfrom core.helper import encrypter-from .segments import Segment, StringSegment+from .segments import NoneSegment, Segment, StringSegmentfrom .types import SegmentType@@ -83,6 +83,6 @@ class SecretVariable(StringVariable):return encrypter.obfuscated_token(self.value)-class NoneVariable(Variable):+class NoneVariable(NoneSegment, Variable):value_type: SegmentType = SegmentType.NONE- value: None = None\ No newline at end of file+ value: None = None