Dipeptidyl peptidase inhibitor. The present invention provides compounds, medicines, kits and methods for DPP-IV and other S9 proteases, including compounds of formula I: where M is N or CR4; Q1 and Q2 are each independently selected from the group consisting of CO, SO, SO2 and C = NR9; each R1, R2, R3, R4, and R9 is as defined herein.二肽基肽酶抑制劑。本發明提供了用於DPP‑IV和其他S9蛋白酶的化合物、藥物、藥盒和方法,包括式I化合物: 其中M是N或CR4;Q1和Q2各自獨立地選自下組:CO、SO、SO2和C=NR9;每一R1、R2、R3、R4和R9是如本文所定義的。