You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gcgj-dify-1.7.0/api/core/workflow
QuantumGhost 501d3b6203
feat(api): Explicitly define version method for all BaseNode subclasses (#21443)
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
9 months ago
..
callbacks Feature/newnew workflow loop node (#14863) 1 year ago
entities feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
graph_engine feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
nodes feat(api): Explicitly define version method for all BaseNode subclasses (#21443) 9 months ago
repositories refactor(workflow): Rename workflow node execution models (#20458) 10 months ago
utils refactor: Improve model status handling and structured output (#20586) 10 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
constants.py feat/enhance the multi-modal support (#8818) 1 year ago
conversation_variable_updater.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
enums.py refactor(api/core/workflow/enums): Rename WORKFLOW_RUN_ID to WORKFLOW_EXECUTION_ID (#20459) 10 months ago
errors.py feat/enhance the multi-modal support (#8818) 1 year ago
variable_loader.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
workflow_cycle_manager.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
workflow_engine_manager.py feat: Parallel Execution of Nodes in Workflows (#8192) 2 years ago
workflow_entry.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
workflow_type_encoder.py feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago