Certified GKH Gardening Expert
They are of the best quality when they are left to dry, if you are going for dry beans but that leaves them open to being eaten by something.
You will have to find a good medium for dry beans. Tou can always let them finish dehydrating indoors or in a dehydrator.
This article will offer more information:https://www.gardeningknowhow.com/edible/vegetables/beans/harvesting-beans-when-do-you-pick-beans.htm