This study aimed to determine the effects of polyethylene glycol loxenatide (PEG-Loxe), a glucagon-like peptide-1 receptor agonist, on a three-point major adverse cardiovascular event (3P-MACE) in patients with type 2 diabetes mellitus (T2DM). The study was conducted in six tertiary hospitals in three cities in China. Large language models were used to retrospectively screen and include 12,341 patients with T2DM who had either cardiovascular disease or cardiovascular risk factors. The patients were divided into the PEG-Loxe cohort (treated with PEG-Loxe,