mirror of https://github.com/langgenius/dify.git
This PR addresses issue #21441 by implementing explicit `version` method definitions for all `BaseNode` subclasses to improve code maintainability. ### Changes Added explicit `version` method definitions for all `BaseNode` subclasses: - `QuestionClassifierNode` - `KnowledgeRetrievalNode` - `AgentNode` Added comprehensive test suite to validate: 1. All subclasses of `BaseNode` have explicitly defined `version` method 2. All subclasses have required `_node_type` property 3. The `(node_type, node_version)` combination is unique across all subclasses |
||
|---|---|---|
| .. | ||
| callbacks | ||
| entities | ||
| graph_engine | ||
| nodes | ||
| repositories | ||
| utils | ||
| __init__.py | ||
| constants.py | ||
| conversation_variable_updater.py | ||
| enums.py | ||
| errors.py | ||
| variable_loader.py | ||
| workflow_cycle_manager.py | ||
| workflow_engine_manager.py | ||
| workflow_entry.py | ||
| workflow_type_encoder.py | ||