fix: provide json as text

Signed-off-by: Stream <Stream_2@qq.com>
This commit is contained in:
Stream
2026-01-30 10:45:14 +08:00
parent 171551cfb3
commit 0035587fed

View File

@ -2510,7 +2510,7 @@ class LLMNode(Node[LLMNodeData]):
)
return LLMGenerationData(
text=aggregate.text,
text=aggregate.text or json.dumps(aggregate.structured_output),
reasoning_contents=buffers.reasoning_per_turn,
tool_calls=tool_calls_for_generation,
sequence=sequence,