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

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

        return instance
Check that either 'record_id' or 'value' is provided
argilla-server/src/argilla_server/api/schemas/v1/records.py