garak.exception

exception garak.exception.APIKeyMissingError

Bases: GarakException

Exception to be raised if a required API key is not found

exception garak.exception.BadGeneratorException

Bases: PluginConfigurationError

Generator invocation requested is not usable

exception garak.exception.ConfigFailure

Bases: GarakException

Raised when plugin configuration fails

exception garak.exception.GarakBackoffTrigger

Bases: GarakException

Thrown when backoff should be triggered

exception garak.exception.GarakException

Bases: Exception

Base class for all garak exceptions

exception garak.exception.ModelNameMissingError

Bases: GarakException

A generator requires model_name to be set, but it wasn’t

exception garak.exception.PayloadFailure

Bases: GarakException

Problem instantiating/using payloads

exception garak.exception.PluginConfigurationError

Bases: GarakException

Plugin config/description is not usable

exception garak.exception.RateLimitHit

Bases: Exception

Raised when a rate limiting response is returned