Spaces:
Sleeping
Sleeping
File size: 1,334 Bytes
da7be98 616f4bd 86ef5d6 da7be98 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from typing import List, Dict, Union
from langchain_core.pydantic_v1 import BaseModel, Field
class ResumeStructure(BaseModel):
education: List[Dict[str, str]] = Field(description="List of dictionaries containing 'university' and 'CGPA'")
work: List[Dict[str, Union[str, List[str]]]] = Field(description="List of dictionaries containing "
"'organization', 'location', 'position', "
"'duration', 'standardized_job_title', "
"and 'predicted_skills'")
projects: List[Dict[str, Union[str, List[str]]]] = Field(description="List of dictionaries containing "
"'project_name', 'start_date', 'end_date', "
"'description', and 'predicted_skills'")
skills: Dict[str, List[str]] = Field(description="Dictionary containing all 'Technical Skills' and 'Non Technical Skills'")
techstack: List[str] = Field(description="List of all technologies used in projects")
career_trajectory: str = Field(description="String representing the career progression of the candidate")
|