def at_least_one_must_be_provided(cls, v, values, field):
        """Validates that at least one of 'multiply_score_by', 'add_to_score' is non-null."""
        if field.name == 'add_to_score' and v is None and values.get('multiply_score_by') is None:
            raise ScoreModifierValidationError(modifier=values,
                                               message="At least one of multiply_score_by or add_to_score must be provided")
        return v
Validates that at least one of 'multiply_score_by', 'add_to_score' is non-null.
src/marqo/tensor_search/models/score_modifiers_object.py