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/tests/unit_tests/core
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
..
agent/output_parser fix: code block syntax cannot be displayed correctly in react mode (#16904) 12 months ago
app feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
file feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
helper chore: replace pseudo-random generators with secrets module (#20616) 10 months ago
model_runtime fix: invalid new tool call creation logic during response handling in OAI-Compat model (#17781) 11 months ago
prompt Refactor/remove db from cycle manager (#20455) 10 months ago
rag fix: markdown_extractor lost chunks if it starts without a header(#21308) (#21309) 9 months ago
tools refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 10 months ago
variables feat: Persist Variables for Enhanced Debugging Workflow (#20699) 9 months ago
workflow feat(api): Explicitly define version method for all BaseNode subclasses (#21443) 9 months ago
__init__.py FEAT: NEW WORKFLOW ENGINE (#3160) 2 years ago
test_file.py feat(llm_node): support order in text and files (#11837) 1 year ago
test_model_manager.py ext_redis.py support redis clusters --- Fixes #9538 (#9789) 1 year ago
test_provider_manager.py Introduce Plugins (#13836) 1 year ago