Payload
object and return a tuple containing a boolean and an optional string.
Here’s an example of a custom metric function:
Guard.register_custom_metric
method. This allows you to integrate custom logic for evaluating your payloads.
length_check
value is registered with the custom_metric_function
, enabling Murnitur Shield to use it during payload evaluations.