/ src / __pycache__ / data_models.cpython-312.pyc
data_models.cpython-312.pyc
 1 2  *�~iX����ddlmZmZmZmZmZddlmZddlm	Z	ddl
 3  mZmZGd�de�Z
Gd�de�ZGd	�d
 4  e�ZGd�de�ZGd
�de�ZGd�de�ZGd�de�Zd�ZGd�de�Zy)�)�	TypedDict�	Annotated�List�Dict�Any)�
 5  AnyMessage)�add_messages)�	BaseModel�Fieldc���eZdZUdZed��Zeed<edd��Zeed<edd	��Z	eed
 6  <edd��Z
 7  eed<edd
��Zeed<edd��Zeed<y)�PersonalDataz&Personal information extracted from CVzCandidate's full name��description�fullNamezNot providedzPhone number)�defaultr�phoneNumberzBirthdate in YYYY-MM-DD format�	birthdatezGithub profile url�	githubUrlzLinkedin profile url�linkedinUrlzCity of residence�cityN)
�__name__�
 8  __module__�__qualname__�__doc__rr�str�__annotations__rrrrr����/Users/furqan/Documents/AI HR Automation/LangGraph Solution/AI HR Automation - LangGraph Python Project/PythonProject/agentic-ai-hr-automation/src/data_models.pyr
r

 9  sn��0��&=�>�H�c�>��^��P�K��P��>�?_�`�I�s�`��>�?S�T�I�s�T��^�AW�X�K��X��n�:M�N�D�#�Nrr
c�f�eZdZUdZed��Zeed<ed��Zeed<ed��Z	eed<y	)
10  �	Education�Educational backgroundzDegree namer�degreezInstitution name�institutionzGraduation year or period�yearN)
11  rrrrrr#rrr$r%rrrr!r!s4�� ��M�2�F�C�2��);�<�K��<��"=�>�D�#�>rr!c�f�eZdZUdZed��Zeed<ed��Zeed<ed��Z	eed<y	)
1213  JobHistoryzJob history entryzCompany namer�companyz	Job title�titlezEmployment duration�durationN)
14  rrrrrr(rrr)r*rrrr'r's3����^�4�G�S�4��;�/�E�3�/��&;�<�H�c�<rr'c�x�eZdZUdZed��Zeeed<ed��Z	ee
15  ed<ed��Zeeed<y	)
16  �Qualifications�Professional qualificationsr"r�	educationzWork experience�
17  jobHistoryzTechnical skills�technicalSkillsN)
rrrrrr.�listr!rr/r'r0rrrrr,r,"sB��%�!&�3K�!L�I�t�I��L�#(�5F�#G�J��Z� �G�!&�3E�!F�O�T�#�Y�Frr,c�x�eZdZUdZed��Zeeed<ed��Z	eeed<ed��Z
18  eeed<y	)
19  �SkillsMatchr-z*Strong matched skills with job descriptionr�strongz+Partial matched skills with job description�partialz#Missing skills with job description�missingN)rrrrrr4r1rrr5r6rrrr3r3)sA��%��*V�W�F�D��I�W��+X�Y�G�T�#�Y�Y��+P�Q�G�T�#�Y�Qrr3c��eZdZUdZeddd��Zeed<ed��Ze	ed	<ed
20  ��Z
21  ee	ed<ed��Ze	ed
<ed��Z
ee	ed<y)�CandidateEvaluationzFinal candidate evaluationzScore from 1-100��d)r�ge�le�scorez Detailed reasoning for the scorer�	reasoningzStrengths of the candidate�	strengthszDecision of the candidate�decisionzGaps of the candidate�gapsN)rrrrrr=�intrr>rr?rr@rAr1rrrr8r80sa��$��#5�!��D�E�3�D��'I�J�I�s�J� �-I�J�I�t�C�y�J��&A�B�H�c�B��(?�@�D�$�s�)�@rr8c�h�eZdZUed��Zeeed<ed��Zeeed<de	ee
22  ffd�Zy)	�	JobSkillsz�Technical skills required for the role. Include programming languages, frameworks, tools, platforms, databases, cloud services, automation tools, APIs, etc. Normalize into short canonical names (e.g., 'Python', 'SQL', 'Docker').r�tech_skillsz�Soft skills and non-technical competencies. Include communication, collaboration, leadership, problem solving, time management, adaptability, etc. Normalize into short canonical phrases (e.g., 'Project Management', 'Team Collaboration').�soft_skills�returnc�"�|j�S)z)Convert to dictionary for MongoDB storage)�
23  model_dump)�selfs r�to_dictzJobSkills.to_dictLs����� � rN)rrrrrErrrrFrrrKrrrrDrD:sN��"�
V��K��c���#�
i��K��c���!��c�3�h��!rrDc��|S)Nr)�current�news  r�
reduce_latestrOPs���Jrc���eZdZUdZeeefed<eeefed<eeefed<eeefed<eeefed<eeefed<eeefed<eeefed	<eeefed
24  <eeefed<ee	efed<eeefed
<eeefed<eeefed<eeefed<ee
25  efed<eeefed<eeefed<eeefed<eeeefed<eee
efed<y)�
26  AgentStatez.State object passed between nodes in the graph�candidate_name�candidate_email�cv_file_url�cv_file_path�extracted_cv_data�cv_link�summary�	job_title�job_description�job_description_html�
27  job_skills�hr_email�
28  evaluation�skills_match�tag�evaluation_score�notification_message�	notify_hr�	timestamp�errors�messagesN)rrrrrrrOr�dictrDrB�boolr1rr	rrrrQrQSsb��8��c�=�0�1�1��s�M�1�2�2��3�
�-�.�.��C��.�/�/� ��}�!4�5�5��s�M�)�
*�*�
�s�M�)�
*�*���m�+�,�,��s�M�1�2�2�#�C��$6�7�7��)�]�2�3�3���]�*�+�+��$�
�-�.�.��D�-�/�0�0�	�3�
�%�	&�&���]� 2�3�3�#�C��$6�7�7���}�,�-�-���m�+�,�,��d�3�i��.�/�/���Z�(�,�6�7�7rrQN)�typingrrrrr�langchain_core.messagesr�langgraph.graph.messager	�pydanticr
29  rr
r!r'r,r3r8rDrOrQrrr�<module>rms���
30  9�8�.�0�%�O�9�O�?�	�?�=��=�G�Y�G�R�)�R�A�)�A�!�	�!�,�8��8r