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/models
QuantumGhost 13dc1c8795
Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062)
Currently, `WorkflowNodeExecution.execution_metadata_dict` returns `None` when metadata is absent in the database. This requires all callers to perform `None` checks when processing metadata, leading to more complex caller-side logic.

This pull request updates the `execution_metadata_dict` method to return an empty dictionary instead of `None` when metadata is absent. This change would simplify the caller logic, as it removes the need for explicit `None` checks and provides a more consistent data structure to work with.
11 months ago
..
__init__.py feat(workflow): domain model for workflow node execution (#19430) 11 months ago
account.py refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 11 months ago
api_based_extension.py refactor(models): Use the SQLAlchemy base model. (#19435) 11 months ago
base.py refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 11 months ago
dataset.py fix: replace all dataset.Model.query to db.session.query(Model) (#19509) 11 months ago
engine.py feat(api): Add image multimodal support for LLMNode (#17372) 12 months ago
enums.py feat(api): Introduce `WorkflowDraftVariable` Model (#19737) 11 months ago
model.py feat(workflow): domain model for workflow node execution (#19430) 11 months ago
provider.py refactor(models): Use the SQLAlchemy base model. (#19435) 11 months ago
source.py refactor(models): Use the SQLAlchemy base model. (#19435) 11 months ago
task.py Introduce Plugins (#13836) 1 year ago
tools.py refactor: Use typed SQLAlchemy base model and fix type errors (#19980) 11 months ago
types.py feat(api): Introduce `WorkflowDraftVariable` Model (#19737) 11 months ago
web.py Introduce Plugins (#13836) 1 year ago
workflow.py Simplify `execution_metadata` Handling for `WorkflowNodeExecution` (#20062) 11 months ago