Compounds of Formulae Ia and Ib, and stereoisomers, geometric isomers, tautomers, solvates, metabolites and pharmaceutically acceptable salts thereof, are useful for inhibiting lipid kinases including PI3K, and for treating disorders such as cancer mediated by lipid kinases. Methods of using compounds of Formula Ia and Ib forin vitro,in situ, andin vivodiagnosis, prevention or treatment of such disorders in mammalian cells, or associated pathological conditions, are disclosed.式Ia與Ib化合物,及其立體異構物、幾何異構物、互變異構物、溶劑合物、新陳代謝產物及藥學上可接受之鹽,係可用於抑制包括PI3K之脂質激酶,及治療藉由脂質激酶所媒介之病症,譬如癌症。本發明係揭示在哺乳動物細胞中使用式Ia與Ib化合物供活體外、原位及活體內診斷、預防或治療此種病症或有關聯病理學症狀之方法。