Get Latest/Current function version tag in FoO

I implemented a button that does some sophisticated calculations and stores the results in an object type. The calculations are under development and will be further extended. I want to record on the results object with which version tags (library + osdk / functions) the calculations were performed to indicate in the future if something may need re-calculation.

Getting the version of a library is pretty simple, however the git version tag is not directly accessible afaik. Or is it?

How are the python functions built? I guess the git repo may not exist in the published function image?