mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
refactor: update datasource entity structure and parameter handling
- Renamed and split parameters in DatasourceEntity into first_step_parameters and second_step_parameters. - Updated validation methods for new parameter structure. - Adjusted datasource_node to reference first_step_parameters. - Cleaned up unused imports and improved type hints in workflow.py.
This commit is contained in:
@ -64,7 +64,7 @@ class DatasourceNode(BaseNode[DatasourceNodeData]):
|
||||
return
|
||||
|
||||
# get parameters
|
||||
datasource_parameters = datasource_runtime.entity.parameters
|
||||
datasource_parameters = datasource_runtime.entity.first_step_parameters
|
||||
parameters = self._generate_parameters(
|
||||
datasource_parameters=datasource_parameters,
|
||||
variable_pool=self.graph_runtime_state.variable_pool,
|
||||
|
||||
Reference in New Issue
Block a user