fix: provide json as text

This commit is contained in:
Stream 2026-01-30 10:47:58 +08:00
parent 0035587fed
commit cb4391f705
No known key found for this signature in database
GPG Key ID: 0D403F5A24E1C78B
1 changed files with 1 additions and 1 deletions

View File

@ -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,