Add report generation step to the main async process

The `generate_report` method is now explicitly called within the main process, ensuring the researcher's report generation is initiated properly. Updated its return type annotation for clarity in `deepresearch.py`.
This commit is contained in:
ThomasTaroni 2025-04-25 18:39:33 +02:00
parent 14429fc6f7
commit ade4511a87
2 changed files with 2 additions and 1 deletions

View file

@ -27,7 +27,7 @@ class ReportGenerator:
self.researcher = GPTResearcher(query, report_type, websocket=self.custom_logs_handler)
async def generate_report(self):
async def generate_report(self) -> CustomLogsHandler:
"""
Conducts research and generates the report along with additional information.
"""