-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
26 lines (23 loc) · 1.08 KB
/
models.py
File metadata and controls
26 lines (23 loc) · 1.08 KB
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
from typing import TypedDict, List, Optional
class GraphState(TypedDict):
"""
Represents the state of our graph (Stateless Version).
Attributes:
userId: Kept structurally but not used for persistence.
job_description: The job description provided by the user.
file_bytes: The raw bytes of the uploaded PDF file (transient).
resume_text: The text extracted from the PDF.
target_archetype: The career archetype identified for the job description.
alumni_examples: Relevant text snippets from alumni resumes.
feedback: The generated feedback for the current resume.
error_message: Any error message encountered during the process.
"""
userId: Optional[str] # No longer used for storage
job_description: str
file_bytes: Optional[bytes] # Removed after extraction
resume_text: Optional[str]
target_archetype: Optional[str]
alumni_examples: Optional[str]
feedback: Optional[str]
error_message: Optional[str]
# Removed: previous_resume_text, previous_feedback, comparison_report, save_error