Fix method invocation in LoggerChatModel
This commit resolves an issue where the LoggerChatModel class was incorrectly
attempting to call instances of AIModel directly as if they were callable objects.
Changes include:
- Modified __call__ method to explicitly use the invoke method when calling AI models.
- Updated constructor documentation to clarify the type of object expected.
- Added additional debug logging for better traceability of method entry and exit points.
These changes ensure that the LoggerChatModel class aligns with the intended design
patterns and correctly utilizes the AIModel instances, improving the maintainability
and robustness of the codebase.
This commit is contained in:
parent
9ef928569b
commit
7d7110253a
6 changed files with 67 additions and 210 deletions
|
|
@ -1,52 +0,0 @@
|
|||
remote: [true/false]
|
||||
|
||||
experienceLevel:
|
||||
internship: [true/false]
|
||||
entry: [true/false]
|
||||
associate: [true/false]
|
||||
mid-senior level: [true/false]
|
||||
director: [true/false]
|
||||
executive: [true/false]
|
||||
|
||||
jobTypes:
|
||||
full-time: [true/false]
|
||||
contract: [true/false]
|
||||
part-time: [true/false]
|
||||
temporary: [true/false]
|
||||
internship: [true/false]
|
||||
other: [true/false]
|
||||
volunteer: [true/false]
|
||||
|
||||
date:
|
||||
all time: [true/false]
|
||||
month: [true/false]
|
||||
week: [true/false]
|
||||
24 hours: [true/false]
|
||||
|
||||
positions:
|
||||
- position1
|
||||
- position2
|
||||
|
||||
locations:
|
||||
- Country1
|
||||
- Country2
|
||||
|
||||
applyOnceAtCompany: [true/false]
|
||||
|
||||
distance: 100
|
||||
|
||||
company_blacklist:
|
||||
- Company1
|
||||
- Company2
|
||||
|
||||
titleBlacklist:
|
||||
- word1
|
||||
- word2
|
||||
|
||||
job_applicants_threshold:
|
||||
min_applicants: 0
|
||||
max_applicants: 100
|
||||
|
||||
llm_model_type: openai
|
||||
llm_model: gpt-4o
|
||||
llm_api_url: https://api.pawan.krd/cosmosrp/v1
|
||||
|
|
@ -1,119 +0,0 @@
|
|||
personal_information:
|
||||
name: "[Your Name]"
|
||||
surname: "[Your Surname]"
|
||||
date_of_birth: "[Your Date of Birth]"
|
||||
country: "[Your Country]"
|
||||
city: "[Your City]"
|
||||
address: "[Your Address]"
|
||||
phone_prefix: "[Your Phone Prefix]"
|
||||
phone: "[Your Phone Number]"
|
||||
email: "[Your Email Address]"
|
||||
github: "[Your GitHub Profile URL]"
|
||||
linkedin: "[Your LinkedIn Profile URL]"
|
||||
|
||||
education_details:
|
||||
- education_level: "[Your Education Level]"
|
||||
institution: "[Your Institution]"
|
||||
field_of_study: "[Your Field of Study]"
|
||||
final_evaluation_grade: "[Your Final Evaluation Grade]"
|
||||
start_date: "[Start Date]"
|
||||
year_of_completion: "[Year of Completion]"
|
||||
exam:
|
||||
exam_name_1: "[Grade]"
|
||||
exam_name_2: "[Grade]"
|
||||
exam_name_3: "[Grade]"
|
||||
exam_name_4: "[Grade]"
|
||||
exam_name_5: "[Grade]"
|
||||
exam_name_6: "[Grade]"
|
||||
|
||||
experience_details:
|
||||
- position: "[Your Position]"
|
||||
company: "[Company Name]"
|
||||
employment_period: "[Employment Period]"
|
||||
location: "[Location]"
|
||||
industry: "[Industry]"
|
||||
key_responsibilities:
|
||||
- responsibility_1: "[Responsibility Description]"
|
||||
- responsibility_2: "[Responsibility Description]"
|
||||
- responsibility_3: "[Responsibility Description]"
|
||||
skills_acquired:
|
||||
- "[Skill]"
|
||||
- "[Skill]"
|
||||
- "[Skill]"
|
||||
|
||||
- position: "[Your Position]"
|
||||
company: "[Company Name]"
|
||||
employment_period: "[Employment Period]"
|
||||
location: "[Location]"
|
||||
industry: "[Industry]"
|
||||
key_responsibilities:
|
||||
- responsibility_1: "[Responsibility Description]"
|
||||
- responsibility_2: "[Responsibility Description]"
|
||||
- responsibility_3: "[Responsibility Description]"
|
||||
skills_acquired:
|
||||
- "[Skill]"
|
||||
- "[Skill]"
|
||||
- "[Skill]"
|
||||
|
||||
projects:
|
||||
- name: "[Project Name]"
|
||||
description: "[Project Description]"
|
||||
link: "[Project Link]"
|
||||
|
||||
- name: "[Project Name]"
|
||||
description: "[Project Description]"
|
||||
link: "[Project Link]"
|
||||
|
||||
achievements:
|
||||
- name: "[Achievement Name]"
|
||||
description: "[Achievement Description]"
|
||||
- name: "[Achievement Name]"
|
||||
description: "[Achievement Description]"
|
||||
|
||||
certifications:
|
||||
- name: "[Certification Name]"
|
||||
description: "[Certification Description]"
|
||||
- name: "[Certification Name]"
|
||||
description: "[Certification Description]"
|
||||
|
||||
languages:
|
||||
- language: "[Language]"
|
||||
proficiency: "[Proficiency Level]"
|
||||
- language: "[Language]"
|
||||
proficiency: "[Proficiency Level]"
|
||||
|
||||
interests:
|
||||
- "[Interest]"
|
||||
- "[Interest]"
|
||||
- "[Interest]"
|
||||
|
||||
availability:
|
||||
notice_period: "[Notice Period]"
|
||||
|
||||
salary_expectations:
|
||||
salary_range_usd: "[Salary Range]"
|
||||
|
||||
self_identification:
|
||||
gender: "[Gender]"
|
||||
pronouns: "[Pronouns]"
|
||||
veteran: "[Yes/No]"
|
||||
disability: "[Yes/No]"
|
||||
ethnicity: "[Ethnicity]"
|
||||
|
||||
legal_authorization:
|
||||
eu_work_authorization: "[Yes/No]"
|
||||
us_work_authorization: "[Yes/No]"
|
||||
requires_us_visa: "[Yes/No]"
|
||||
requires_us_sponsorship: "[Yes/No]"
|
||||
requires_eu_visa: "[Yes/No]"
|
||||
legally_allowed_to_work_in_eu: "[Yes/No]"
|
||||
legally_allowed_to_work_in_us: "[Yes/No]"
|
||||
requires_eu_sponsorship: "[Yes/No]"
|
||||
|
||||
work_preferences:
|
||||
remote_work: "[Yes/No]"
|
||||
in_person_work: "[Yes/No]"
|
||||
open_to_relocation: "[Yes/No]"
|
||||
willing_to_complete_assessments: "[Yes/No]"
|
||||
willing_to_undergo_drug_tests: "[Yes/No]"
|
||||
willing_to_undergo_background_checks: "[Yes/No]"
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
email: myemaillinkedin@gmail.com
|
||||
password: ImpossiblePassowrd10
|
||||
llm_api_key: 'sk-11KRr4uuTwpRGfeRTfj1T9BlbkFJjP8QTrswHU1yGruru2FR'
|
||||
Loading…
Add table
Add a link
Reference in a new issue