-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (31 loc) · 970 Bytes
/
main.py
File metadata and controls
42 lines (31 loc) · 970 Bytes
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
34
35
36
37
38
39
40
41
42
"""
Local-first HR triage agent using Ollama.
Main entry point for the HR triage system.
Models:
- all-minilm -> intent detection (embeddings)
- phi3:mini -> HR response planning
- function-gemma:2b -> constrained function execution
Use case:
- Private employee reports
- Burnout, harassment, policy violations
- GDPR / labor-law sensitive data
"""
import time
from agent import HRTriageAgent
def main():
"""Main entry point."""
# Initialize the agent
agent = HRTriageAgent()
# Test report
test_report = """
My Eployee ID is 12345: I have been working excessive hours for months.
My manager threatens retaliation if I raise concerns,
and I am feeling mentally exhausted and unsafe.
"""
# Process the report
start = time.time()
agent.handle_report(test_report)
end = time.time()
print(f"\n[TOTAL LATENCY] {end - start:.2f}s")
if __name__ == "__main__":
main()