pyrit.score.RegistryUpdateBehavior#
- class RegistryUpdateBehavior(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
EnumEnum representing how the evaluation registry should be updated.
- Members:
- SKIP_IF_EXISTS: Only run evaluation and update registry if no matching entry exists.
This is the default production behavior for efficiency.
- ALWAYS_UPDATE: Always run evaluation and overwrite any existing registry entry.
Use when you want to force re-evaluation with updated scorer configuration.
- NEVER_UPDATE: Always run evaluation but never write to the registry.
Use for debugging and testing without affecting stored results.
- __init__(*args, **kwds)#
Attributes
- ALWAYS_UPDATE = 'always_update'#
- NEVER_UPDATE = 'never_update'#
- SKIP_IF_EXISTS = 'skip_if_exists'#