Spaces:
Sleeping
Sleeping
| # 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 | |
| """ | |