Metaphysics

A person says, 'I returned the book because I had promised to do so.' In discussing the action, what is the best way to interpret the promise?