def check_required(cls, values: dict) -> dict:
        """Check that either 'record_id' or 'value' is provided"""
        record_id = values.get("record_id")
        value = values.get("value")

        if bool(record_id) == bool(value):
            raise ValueError("Either 'record_id' or 'value' must be provided")

        return values
Check that either 'record_id' or 'value' is provided
argilla-v1/src/argilla_v1/client/sdk/v1/datasets/models.py