We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91871df commit 66cf600Copy full SHA for 66cf600
workflowai/core/domain/run.py
@@ -110,13 +110,12 @@ def format_output(self) -> str:
110
# Format the output string
111
output: list[str] = []
112
# In case of partial validation, it is possible that the output is an empty model
113
- if self.output.model_dump():
+ if dumped_output := self.output.model_dump(mode="json"):
114
# Use model_dump_json which handles datetime serialization correctly
115
- output_json = self.output.model_dump_json(indent=2)
116
output += [
117
"\nOutput:",
118
"=" * 50,
119
- output_json, # Use the JSON string directly
+ json.dumps(dumped_output, indent=2),
120
121
]
122
if self.tool_call_requests:
0 commit comments