File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 11from pydantic import BaseModel , EmailStr
2- from typing import Optional
2+ from typing import Optional , Dict
33
44class UserCreate (BaseModel ):
55 email : EmailStr
66 full_name : Optional [str ]
77 password : str
88
9+
910class UserOut (BaseModel ):
1011 id : int
1112 email : EmailStr
@@ -14,3 +15,27 @@ class UserOut(BaseModel):
1415
1516 class Config :
1617 orm_mode = True
18+
19+ class RepoData (BaseModel ):
20+ num_languages : int
21+ avg_function_length : float
22+ num_repos : int
23+ commit_frequency : int
24+
25+
26+ class CognitiveTest (BaseModel ):
27+ abstraction : int
28+ debugging : int
29+ system_design : int
30+ optimization : int
31+
32+
33+ class AnalysisInput (BaseModel ):
34+ repo_data : RepoData
35+ cognitive_test : CognitiveTest
36+
37+
38+ class AnalysisOutput (BaseModel ):
39+ technical_score : float
40+ cognitive_profile : Dict
41+ recommended_career_path : str
You can’t perform that action at this time.
0 commit comments