Open leondz opened 1 month ago
_call_model and generate type signatures are important. generator compliance can be automatically tested.
_call_model
generate
Run the relevant items from tests/generators/test_generators.py over all generators available
tests/generators/test_generators.py
test presence and compliance of generations_this_call parameter
generations_this_call
create garak-specific exception for missing API key, and skip test if raised. e.g.
@skip_on(garak.exception.NoAPIKey, reason="No API key was found for this generator")
_call_model
andgenerate
type signatures are important. generator compliance can be automatically tested.Run the relevant items from
tests/generators/test_generators.py
over all generators availabletest presence and compliance of
generations_this_call
parameter