File size: 383 Bytes
654be98
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
# src/__init__.py
"""
SafetyRepairKit-style minimal jailbreak detection and repair utilities.

Modules:
- rules.py       β†’ regex-based jailbreak / policy-violation patterns
- detector.py    β†’ aggregates rule hits into a risk score 0–1
- repair.py      β†’ simple repair strategy (safe fallback on high risk)
- pipeline.py    β†’ wraps a generation model with safety+repair
"""