About 20 years - and for diabetes. So there’s no research further back than that so the long long term affects aren’t known.
the way the work is that they fool the body into producing more insulin by fooling the brain by making the gut produce signals that you’ve eaten - so they’re actually making your pancreas work harder - they’ve been known to cause pancreatitis. There is also a box warning about the increased risk of certain tumours too.
Theres also an increased risk of gall stones plus risk with anaesthesia as with a GLP1 agonist the stomach empties much more slowly therefore increasing the risk of aspiration
Can also cause kidney inflammation and low blood pressure
so they’re actually making are definitely not risk free