From 33ff01d04c59bebf269a5fd32b10cbc353bf2a1e Mon Sep 17 00:00:00 2001 From: goofy <38034027+goofy-z@users.noreply.github.com> Date: Fri, 21 Nov 2025 17:54:57 +0800 Subject: [PATCH] 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> --- api/core/workflow/workflow_entry.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/core/workflow/workflow_entry.py b/api/core/workflow/workflow_entry.py index 742c42ec2b..a6c6784e39 100644 --- a/api/core/workflow/workflow_entry.py +++ b/api/core/workflow/workflow_entry.py @@ -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)