forked from AIHawk-FOSS/Auto_Jobs_Applier_AI_Agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
job.py
33 lines (28 loc) · 884 Bytes
/
job.py
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
from dataclasses import dataclass
@dataclass
class Job:
title: str
company: str
location: str
link: str
apply_method: str
description: str = ""
summarize_job_description: str = ""
def set_summarize_job_description(self, summarize_job_description):
self.summarize_job_description = summarize_job_description
def set_job_description(self, description):
self.description = description
def formatted_job_information(self):
"""
Formats the job information as a markdown string.
"""
job_information = f"""
# Job Description
## Job Information
- Position: {self.title}
- At: {self.company}
- Location: {self.location}
## Description
{self.description or 'No description provided.'}
"""
return job_information.strip()