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(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829)
QuantumGhosta97ff587d2b6
diff --git a/api/core/workflow/nodes/knowledge_retrieval/entities.py b/api/core/workflow/nodes/knowledge_retrieval/entities.pyindex d2e5a15545b..19bdee4fe20 100644--- a/api/core/workflow/nodes/knowledge_retrieval/entities.py+++ b/api/core/workflow/nodes/knowledge_retrieval/entities.py@@ -132,3 +132,12 @@ class KnowledgeRetrievalNodeData(BaseNodeData):metadata_model_config: Optional[ModelConfig] = Nonemetadata_filtering_conditions: Optional[MetadataFilteringCondition] = Nonevision: VisionConfig = Field(default_factory=VisionConfig)++ @property+ def structured_output_enabled(self) -> bool:+ # NOTE(QuantumGhost): Temporary workaround for issue #20725+ # (https://github.com/langgenius/dify/issues/20725).+ #+ # The proper fix would be to make `KnowledgeRetrievalNode` inherit+ # from `BaseNode` instead of `LLMNode`.+ return Falsediff --git a/api/core/workflow/nodes/question_classifier/entities.py b/api/core/workflow/nodes/question_classifier/entities.pyindex 5219f11d267..6248df0edf1 100644--- a/api/core/workflow/nodes/question_classifier/entities.py+++ b/api/core/workflow/nodes/question_classifier/entities.py@@ -19,3 +19,12 @@ class QuestionClassifierNodeData(BaseNodeData):instruction: Optional[str] = Nonememory: Optional[MemoryConfig] = Nonevision: VisionConfig = Field(default_factory=VisionConfig)++ @property+ def structured_output_enabled(self) -> bool:+ # NOTE(QuantumGhost): Temporary workaround for issue #20725+ # (https://github.com/langgenius/dify/issues/20725).+ #+ # The proper fix would be to make `QuestionClassifierNode` inherit+ # from `BaseNode` instead of `LLMNode`.+ return False