Commit graph

59 commits

Author SHA1 Message Date
1dbf774d55 Refactor async methods to adjust return types.
Changed `send_json` to return `None` instead of yielding and updated log retrieval to use `yield` in place of `return`. These modifications align function behavior with intended asynchronous use cases and improve consistency.
2025-04-25 18:46:48 +02:00
327758f00f Refactor async logging logic in report generation.
Removed unused log yielding in `main.py` to simplify the flow. Updated `send_json` in `deepresearch.py` to use an async generator for more flexible streaming of log data.
2025-04-25 18:42:40 +02:00
ade4511a87 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`.
2025-04-25 18:39:33 +02:00
14429fc6f7 Refactor logging and improve async iteration in report generation
Refactored `CustomLogsHandler` to accept an optional logs list and modified its method to append data instead of yielding. Enhanced `ReportGenerator` with proper asynchronous iterator implementation, enabling smooth log handling and retrieval. Simplified variable naming for better readability.
2025-04-25 18:35:30 +02:00
cd79fe99be Refactor ReportGenerator and integrate custom logs handler
Introduced `CustomLogsHandler` to manage log handling and WebSocket integration in `ReportGenerator`. Simplified and restructured report generation logic for improved maintainability. Removed obsolete methods and enhanced overall readability with cleaner code structure.
2025-04-25 18:20:51 +02:00
6993a52d47 Refactor and improve ReportGenerator for clarity and robustness
Enhanced docstrings for better clarity and consistency across methods. Added error handling for report generation and ensured default values for research details to avoid null errors. Improved comments and logic flow for readability and maintainability.
2025-04-25 10:03:21 +02:00
9f87253082 Make DeepResearch asynchronously iterable.
Added asynchronous iteration methods (`__aiter__` and `__anext__`) to the `DeepResearch` class to enable streaming of research report chunks. Introduced functionality to generate and split reports into smaller chunks for improved report handling.
2025-04-25 09:57:43 +02:00
43423732e2 Add environment variable placeholders to README
Included new environment variable placeholders for better configuration guidance. These updates clarify setup requirements and improve documentation completeness.
2025-04-25 08:42:32 +02:00
3d0d2b2770 Add FastAPI app for report generation with Docker support
Implement a modular FastAPI-based service for generating research reports using `GPTResearcher`. Includes secure API key authentication, a streaming response endpoint, and a Dockerized deployment setup. Also adds documentation, core dependencies, and project structure.
2025-04-25 08:34:18 +02:00