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 Fail(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
DetectorAlways Fail (for testing & prototyping)
- class Pass(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
DetectorAlways Pass (for testing & prototyping)
- class Passthru(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
DetectorSend existing attempt detection results; use first detector
Configurable parameters:
DEFAULT_PARAMScontents:skip=True
Default values are listed
See also Configuring garak for how to set these values.
Other attributes:
- class Random(config_root=<module 'garak._config' from '/home/docs/checkouts/readthedocs.org/user_builds/garak/checkouts/latest/docs/source/../../garak/_config.py'>)Source
Bases:
DetectorAlways return a random result (for testing & prototyping)