Heteroaryl pyridone and aza-pyridone compounds of Formula I are provided, where one or two of X1, X2, and X3are N, and including stereoisomers, tautomers, and pharmaceutically acceptable salts thereof, useful for inhibiting Btk kinase, and for treating immune disorders such as inflammation mediated by Btk kinase. Methods of using compounds of Formula I forin vitro,in situ, andin vivodiagnosis, and treatment of such disorders in mammalian cells, or associated pathological conditions, are disclosed.本發明提供式I之雜芳基吡啶酮及氮雜吡啶酮化合物,其中X1、X2及X3中之一者或兩者為N,且包括其立體異構體、互變異構體及醫藥學上可接受之鹽,其可用於抑制Btk激酶,及用於治療免疫病症,諸如由Btk激酶介導之發炎。本發明揭示使用式I化合物於活體外、原位及活體內診斷及治療哺乳動物細胞之該等病症或相關病理學病狀的方法。