Spaces:
Sleeping
Sleeping
| from crewai import Task | |
| from agents import researcher,human_resources,career_coach | |
| from tools import scrape_tool | |
| research_task = Task( | |
| description=( | |
| "Analyze the job posting URL provided {job_posting_url} " | |
| "to extract key skills, experiences, and qualifications " | |
| "required. Use the tools to gather content and identify " | |
| "and categorize the requirements." | |
| ), | |
| expected_output=( | |
| "" | |
| "skills, qualifications, and experiences." | |
| ), | |
| agent=researcher, | |
| tools=[scrape_tool], | |
| async_execution=True | |
| ) | |
| hr_task=Task( | |
| description=( | |
| "Analyze skills listed in the resume which can be read using the file tool." | |
| "The skills and responsibilites could be a mix of technical and soft skills. Aim is to extract both of those skills." | |
| "Focus on skills which are mentioned in section of resume below each job the candidate has done rather than the section" | |
| "of standalone skills" | |
| ), | |
| expected_output=( | |
| "A structured list of skills including necessary " | |
| "skills, qualifications, and experiences." | |
| ), | |
| agent=human_resources, | |
| async_execution=True, | |
| allow_delegation=False | |
| ) | |
| coach_task=Task( | |
| description=( | |
| "using the information extracted from the previous task" | |
| "specify what skill set is missing in the resume" | |
| ), | |
| context=[hr_task,research_task], | |
| agent=career_coach, | |
| async_execution=False, | |
| expected_output=( | |
| "List of skills and qualifications which are missing from the resume" | |
| ) | |
| ) |