mirror of https://github.com/langgenius/dify.git
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. |
||
|---|---|---|
| .. | ||
| callbacks | ||
| entities | ||
| graph_engine | ||
| nodes | ||
| repositories | ||
| utils | ||
| __init__.py | ||
| constants.py | ||
| enums.py | ||
| errors.py | ||
| workflow_cycle_manager.py | ||
| workflow_engine_manager.py | ||
| workflow_entry.py | ||