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
No known key found for this signature in database
GPG Key ID: 033728094B100D70
1 changed files with 1 additions and 1 deletions

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,