dify/api/core/workflow
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
..
callbacks Feature/newnew workflow loop node (#14863) 2025-03-05 17:41:15 +08:00
entities refactor(workflow): Rename workflow node execution models (#20458) 2025-05-30 04:56:37 +08:00
graph_engine refactor: Replaces direct DB session usage with context managers (#20569) 2025-06-03 16:16:06 +08:00
nodes fix(api): Resolve error encountered when executing `QuestionClassifieNode` (#20829) 2025-06-10 00:34:51 +08:00
repositories refactor(workflow): Rename workflow node execution models (#20458) 2025-05-30 04:56:37 +08:00
utils refactor: Improve model status handling and structured output (#20586) 2025-06-04 19:56:54 +08:00
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2024-04-08 18:51:46 +08:00
constants.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
enums.py refactor(api/core/workflow/enums): Rename WORKFLOW_RUN_ID to WORKFLOW_EXECUTION_ID (#20459) 2025-05-30 11:05:08 +08:00
errors.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
workflow_cycle_manager.py refactor(api/core/workflow/enums): Rename WORKFLOW_RUN_ID to WORKFLOW_EXECUTION_ID (#20459) 2025-05-30 11:05:08 +08:00
workflow_engine_manager.py feat: Parallel Execution of Nodes in Workflows (#8192) 2024-09-10 15:23:16 +08:00
workflow_entry.py Fix: the issue of getting empty environment variables. (#19085) 2025-04-29 18:01:11 +08:00