https://www.tandemdiabetes.com/products/t-slim-x2-insulin-pu...
The pump delivers insulin and gets blood glucose readings from a CGM (continuous glucose monitor) over bluetooth. Then the pump can make decisions such as stopping insulin delivery if you're going to go low, doing small correction boluses, and adjusting basal rate.
However it's far from perfect and still needs a lot of management. My wife has T1D and was recently pregnant, which really raises the bar on how tightly you need to control your diabetes. She ended up mostly micromanaging it all herself rather than trusting Control IQ to do the right thing.
The other issue is CGMs are not that accurate, so these systems are making decisions based on not great data.
https://www.diabetes.org.uk/guide-to-diabetes/diabetes-techn...