File size: 834 Bytes
70b3328
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from pydantic import BaseModel, Field
from typing import List, Optional, Any

class CVExtracted(BaseModel):
    name: str = Field(...)
    skills: List[str] = Field(...)
    links: List[str] = Field(...)
    experiences: List[dict[str, Any]] = Field(...)
    educations: List[dict[str, Any]] = Field(...)

class InsertedText(BaseModel):
    text: str

class CVToClassify(BaseModel):
    educations: List[dict[str, Any]]
    skills: List[str]
    experiences: List[dict[str, Any]]

class JobToClassify(BaseModel):
    minYoE: int
    jobDesc: str
    skills: List[str]
    role: str
    majors: List[str]


class JobAndCV(BaseModel):
    cv: CVToClassify
    job: JobToClassify

class ClassificationResult(BaseModel):
    score: float
    is_accepted: bool
class InsertedLink(BaseModel):
    link: str