mirror of
https://github.com/langgenius/dify.git
synced 2025-12-04 23:08:35 +00:00
Support node reference multiple structured_output variables in single-step run (#26661)
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
ae126fd56f
commit
33ff01d04c
@ -421,4 +421,10 @@ class WorkflowEntry:
|
||||
if len(variable_key_list) == 2 and variable_key_list[0] == "structured_output":
|
||||
input_value = {variable_key_list[1]: input_value}
|
||||
variable_key_list = variable_key_list[0:1]
|
||||
|
||||
# Support for a single node to reference multiple structured_output variables
|
||||
current_variable = variable_pool.get([variable_node_id] + variable_key_list)
|
||||
if current_variable and isinstance(current_variable.value, dict):
|
||||
input_value = current_variable.value | input_value
|
||||
|
||||
variable_pool.add([variable_node_id] + variable_key_list, input_value)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user