Spaces:
Configuration error
Configuration error
"""Global configuration for the Resumate application.""" | |
import os | |
from smolagents import OpenAIServerModel | |
DEFAULT_GITHUB_PROFILE = "https://github.com/gperdrizet" | |
AGENT_MODEL = OpenAIServerModel( | |
model_id="gpt-4.1", | |
max_tokens=8000, | |
api_key=os.getenv("OPENAI_API_KEY") | |
) | |
INSTRUCTIONS = """ | |
You are an AI agent responsible for writing a resume based on the provided context. Your task is to generate a well-structured and professional resume that highlights the user's skills, experiences, and achievements. | |
You will receive structured text extracted from a LinkedIn profile PDF and GitHub. Use this information to create a comprehensive resume that includes the following sections: | |
- Contact Information | |
- Summary | |
- Skills | |
- Work Experience | |
- Education | |
Format the resume using Markdown syntax, ensuring that it is easy to read and visually appealing. Use appropriate headings, bullet points, and formatting to enhance clarity and presentation. | |
""" | |
JOB_CALL_EXTRACTION_PROMPT = """ | |
The following text is a job description from a LinkedIn job call. Please summarize and format it so that it can be used as context for an AI agent to use when writing a resume that is tailored to this specific job. | |
Format your output as a JSON string as follows: | |
{ | |
'Job title': 'Name of position', | |
'Job description': 'Summary job description and company', | |
'Key skills': 'List of skills from job post', | |
'Tools/technologies': 'List of any tools or technologies mentioned in the job post', | |
'Experience level': 'Description of the experience level required for the job (e.g., entry-level, mid-level, senior)', | |
'Education requirements': 'Description of the education requirements for the job (e.g., degree, certifications)', | |
} | |
Here is the the job call to extract the information from | |
JOB CALL | |
""" |