I am of the opinion that when you take an oath you pledge yourself, you commit yourself to a certain way of conducting yourself; that is, to tell the truth or to use your best knowledge and capacity to serve, et cetera, such as with the professional oaths taken by doctors and lawyers that you mentioned.
Je suis d'avis, pour ma part, qu'on s'engage à certaines choses, c'est-à-dire à se conduire d'une certaine façon, à dire la vérité, à faire de son mieux pour servir, et cetera, et que cela ressemble aux serments professionnels pris par les médecins et les avocats, comme vous l'avez mentionné.