diff --git a/lib/crewai/src/crewai/utilities/converter.py b/lib/crewai/src/crewai/utilities/converter.py index 562b549fd..d253cc6e6 100644 --- a/lib/crewai/src/crewai/utilities/converter.py +++ b/lib/crewai/src/crewai/utilities/converter.py @@ -589,7 +589,9 @@ async def aconvert_with_instructions( instructions=instructions, ) exported_result = ( - await converter.ato_pydantic() if not is_json_output else await converter.ato_json() + await converter.ato_pydantic() + if not is_json_output + else await converter.ato_json() ) if isinstance(exported_result, ConverterError):