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:
goofy 2025-11-21 17:54:57 +08:00 committed by GitHub
parent ae126fd56f
commit 33ff01d04c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)