michael-agent 1.0.0__py3-none-any.whl → 1.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
File without changes
@@ -0,0 +1,66 @@
1
+ """
2
+ SmartRecruitAgent Configuration Settings
3
+ Centralizes all configuration parameters and Azure service configurations
4
+ """
5
+
6
+ import os
7
+ from dotenv import load_dotenv
8
+
9
+ # Load environment variables from .env file
10
+ load_dotenv()
11
+
12
+ # Azure OpenAI Configuration
13
+ AZURE_OPENAI_KEY = os.getenv("AZURE_OPENAI_API_KEY") or os.getenv("OPENAI_API_KEY")
14
+ AZURE_OPENAI_ENDPOINT = os.getenv("AZURE_OPENAI_ENDPOINT") or os.getenv("OPENAI_API_BASE")
15
+ AZURE_OPENAI_API_VERSION = os.getenv("AZURE_OPENAI_API_VERSION") or os.getenv("OPENAI_API_VERSION", "2023-05-15")
16
+ AZURE_OPENAI_DEPLOYMENT = os.getenv("AZURE_OPENAI_DEPLOYMENT", "ES-LMS") # Default to ES-LMS
17
+
18
+ # Azure OpenAI Embedding Configuration
19
+ AZURE_EMBEDDING_MODEL = os.getenv("AZURE_EMBEDDING_MODEL", "text-embedding-ada-002")
20
+ AZURE_EMBEDDING_API_KEY = os.getenv("AZURE_EMBEDDING_API_KEY") or AZURE_OPENAI_KEY
21
+ AZURE_EMBEDDING_ENDPOINT = os.getenv("AZURE_EMBEDDING_ENDPOINT") or AZURE_OPENAI_ENDPOINT
22
+ AZURE_EMBEDDING_API_VERSION = os.getenv("AZURE_EMBEDDING_API_VERSION", "2023-05-15")
23
+ AZURE_OPENAI_EMBEDDING_DEPLOYMENT = os.getenv("AZURE_OPENAI_EMBEDDING_DEPLOYMENT", "text-embedding-ada-002")
24
+ AZURE_OPENAI_API_KEY = AZURE_OPENAI_KEY
25
+
26
+ # Azure Form Recognizer Configuration
27
+ AZURE_FORM_RECOGNIZER_KEY = os.getenv("AZURE_FORM_RECOGNIZER_KEY")
28
+ AZURE_FORM_RECOGNIZER_ENDPOINT = os.getenv("AZURE_FORM_RECOGNIZER_ENDPOINT")
29
+
30
+ # Azure Communication Services Configuration
31
+ AZURE_COMMUNICATION_CONNECTION_STRING = os.getenv("AZURE_COMMUNICATION_CONNECTION_STRING")
32
+ AZURE_COMMUNICATION_SENDER_EMAIL = os.getenv("AZURE_COMMUNICATION_SENDER_EMAIL", "recruitment@example.com")
33
+
34
+ # Email SMTP Configuration (Alternative to Azure Communication Services)
35
+ SMTP_SERVER = os.getenv("SMTP_SERVER", "smtp.gmail.com")
36
+ SMTP_PORT = int(os.getenv("SMTP_PORT", 587))
37
+ SMTP_USERNAME = os.getenv("SMTP_USERNAME")
38
+ SMTP_PASSWORD = os.getenv("SMTP_PASSWORD")
39
+ EMAIL_SENDER = os.getenv("EMAIL_SENDER", "recruitment@example.com")
40
+
41
+ # LangGraph Configuration
42
+ LANGGRAPH_CHECKPOINT_DIR = os.getenv("LANGGRAPH_CHECKPOINT_DIR", "./checkpoints")
43
+
44
+ # Learning Management System API Configuration
45
+ LMS_API_URL = os.getenv("LMS_API_URL")
46
+ LMS_API_KEY = os.getenv("LMS_API_KEY")
47
+ LMS_TYPE = os.getenv("LMS_TYPE", "hackerrank") # Options: hackerrank, testgorilla, custom
48
+
49
+ # File System Configuration - ensure these are properly set
50
+ RESUME_WATCH_DIR = os.getenv("RESUME_WATCH_DIR", "./incoming_resumes")
51
+ OUTPUT_DIR = os.getenv("OUTPUT_DIR", "./processed_resumes")
52
+ LOG_DIR = os.getenv("LOG_DIR", "./logs")
53
+ JOB_DESCRIPTIONS_DIR = os.getenv("JOB_DESCRIPTIONS_DIR", "./job_descriptions")
54
+
55
+ # Dashboard Configuration
56
+ DASHBOARD_UPDATE_INTERVAL = int(os.getenv("DASHBOARD_UPDATE_INTERVAL", 5)) # seconds
57
+
58
+ # Workflow Configuration
59
+ MINIMAL_SCORE_THRESHOLD = float(os.getenv("MINIMAL_SCORE_THRESHOLD", 0.6)) # 0.0 to 1.0
60
+ AUTOMATIC_TEST_SENDING = os.getenv("AUTOMATIC_TEST_SENDING", "false").lower() == "true"
61
+ AUTOMATIC_RECRUITER_NOTIFICATION = os.getenv("AUTOMATIC_RECRUITER_NOTIFICATION", "false").lower() == "true"
62
+ DEFAULT_RECRUITER_EMAIL = os.getenv("DEFAULT_RECRUITER_EMAIL", "recruiter@example.com")
63
+
64
+ # Job Descriptions Directory
65
+
66
+ # Note: Directory creation moved to main.py to avoid duplicate creation
File without changes