Disclosed are compounds of Formula (I), methods of using the compounds for inhibiting HPK1 activity and pharmaceutical compositions comprising such compounds. The compounds are useful in treating, preventing or ameliorating diseases or disorders associated with HPK1 activity such as cancer.所揭示者為式(I)之化合物、使用該等化合物用於抑制HPK1活性的方法及包含此類化合物之醫藥組成物。該等化合物可用於治療、預防、或改善與HPK1活性相關聯的疾病或病症,諸如癌症。