Refactor job writing agent: Improved code structure by introducing new data loading classes, enhancing logging practices, and ensuring safe environment variable access. Updated workflow logic for better readability and maintainability.
a01026b | # -*- coding: utf-8 -*- | |
| """ | |
| Created on Mon Oct 23 16:49:52 2023 | |
| @author: rishabhaggarwal | |
| """ | |
| # Legacy import (deprecated - use new classes instead) | |
| from .data_loading_workflow import data_loading_workflow | |
| # New data loading classes following SOLID principles | |
| from .resume_loader import ResumeLoader | |
| from .job_description_loader import JobDescriptionLoader | |
| from .system_initializer import SystemInitializer | |
| from .validation_helper import ValidationHelper | |
| # Other workflow components | |
| # from .createdraft import CreateDraft | |
| from .variations import generate_variations | |
| from .selfconsistency import self_consistency_vote | |
| from .research_workflow import research_workflow | |
| __all__ = [ | |
| # New data loading classes | |
| "ResumeLoader", | |
| "JobDescriptionLoader", | |
| "SystemInitializer", | |
| "ValidationHelper", | |
| "data_loading_workflow", | |
| # Other components | |
| "generate_variations", | |
| "self_consistency_vote", | |
| "research_workflow", | |
| ] | |