diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.py index 1ffdf4d585..1f1eae80f7 100644 --- a/api/core/workflow/nodes/llm/node.py +++ b/api/core/workflow/nodes/llm/node.py @@ -2510,7 +2510,7 @@ class LLMNode(Node[LLMNodeData]): ) return LLMGenerationData( - text=aggregate.text or json.dumps(aggregate.structured_output), + text=aggregate.text or json.dumps(aggregate.structured_output.structured_output), reasoning_contents=buffers.reasoning_per_turn, tool_calls=tool_calls_for_generation, sequence=sequence,