garak.detectors.always
Always detectors
These always return a certain result, used mostly in testing or to indicate where a class’ child should override something.
- class garak.detectors.always.Fail(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Detector
Always Fail (for testing & prototyping)
- bcp47 = '*'
- class garak.detectors.always.Pass(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Detector
Always Pass (for testing & prototyping)
- bcp47 = '*'
- class garak.detectors.always.Passthru(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)
Bases:
Detector
Send existing attempt detection results; use first detector
- DEFAULT_PARAMS = {'skip': True}
- bcp47 = '*'