dify/api/core/workflow/nodes
QuantumGhost a97ff587d2
fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829)
The `QuestionClassifierNode` class extends `LLMNode`, meaning that, per the Liskov Substitution Principle, `QuestionClassifierNodeData` **SHOULD** be compatible in contexts where `LLMNodeData` is expected.

However, the absence of the `structured_output_enabled` attribute violates this principle, causing `QuestionClassifierNode` to fail during execution.

This commit implements a quick and temporary workaround. A proper resolution would involve refactoring to decouple `QuestionClassifierNode` from `LLMNode` to address the underlying design issue.

Fixes #20725.
2025-06-10 00:34:51 +08:00
..
agent refactor: Replaces direct DB session usage with context managers (#20569) 2025-06-03 16:16:06 +08:00
answer Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
base Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
code Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
document_extractor A more concise and effective extractor for excel and csv files (#20625) 2025-06-05 14:59:55 +08:00
end Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
event Refactor/message cycle manage and knowledge retrieval (#20460) 2025-05-30 14:36:44 +08:00
http_request chore: replace pseudo-random generators with secrets module (#20616) 2025-06-06 10:48:28 +08:00
if_else Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
iteration refactor(workflow): Rename NodeRunMetadataKey to WorkflowNodeExecutionMetadataKey (#20457) 2025-05-30 04:47:56 +08:00
knowledge_retrieval fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829) 2025-06-10 00:34:51 +08:00
list_operator Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
llm fix(llm_node): update file variable mapping to use vision configs (#20417) 2025-06-05 09:58:24 +08:00
loop refactor(workflow): Rename NodeRunMetadataKey to WorkflowNodeExecutionMetadataKey (#20457) 2025-05-30 04:47:56 +08:00
parameter_extractor refactor: Replaces direct DB session usage with context managers (#20569) 2025-06-03 16:16:06 +08:00
question_classifier fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829) 2025-06-10 00:34:51 +08:00
start Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
template_transform Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
tool refactor(workflow): Rename NodeRunMetadataKey to WorkflowNodeExecutionMetadataKey (#20457) 2025-05-30 04:47:56 +08:00
variable_aggregator fix: variable aggregator with group and file raise exception (#20581) 2025-06-03 18:17:34 +08:00
variable_assigner Refactor/remove db from cycle manager (#20455) 2025-05-30 04:34:13 +08:00
__init__.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
enums.py Feat/loop node (#17273) 2025-04-02 13:53:26 +08:00
node_mapping.py Feat/loop node (#17273) 2025-04-02 13:53:26 +08:00