fix single-step runs support user input as structured_output variable values (#26430)

This commit is contained in:
goofy 2025-09-30 10:38:55 +08:00 committed by crazywoola
parent cd47a47c3b
commit 2d11560d88
1 changed files with 4 additions and 0 deletions

View File

@ -416,4 +416,8 @@ class WorkflowEntry:
# append variable and value to variable pool
if variable_node_id != ENVIRONMENT_VARIABLE_NODE_ID:
# In single run, the input_value is set as the LLM's structured output value within the variable_pool.
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]
variable_pool.add([variable_node_id] + variable_key_list, input_value)