<P> The AG has often been accused of being partial towards the executive or offering too much deference towards the executive . The incumbent AG, Tommy Thomas, is the first non-Malay and non-Muslim Attorney General to hold office after the formation of Malaysia since 1963 . Pakatan Harapan leader Anwar Ibrahim clarified that his appointment will not adversely affect the status of Islam in the country . </P> <P> The A-G's overall powers, roles, and responsibilities are provided for in Article 145 of the Federal Constitution: </P> <Ol> <Li> The Yang di - Pertuan Agong shall, on the advice of the Prime Minister, appoint a person who is qualified to be a judge of the Federal Court to be the Attorney General for the Federation . </Li> <Li> It shall be the duty of the Attorney General to advise the Yang di - Pertuan Agong or the cabinet or any minister upon such legal matters, and to perform such other duties of a legal character, as may from time to time be referred or assigned to him by the Yang di - Pertuan Agong or the Cabinet, and to discharge the functions conferred on him by or under this Constitution or any other written law . </Li> <Li> The Attorney General shall have power, exercisable at his discretion, to institute, conduct or discontinue any proceedings for an offence, other than proceedings before a Syariah court, a native court or a court - martial . <Ol> <Li> Federal law may confer on the Attorney General power to determine the courts in which or the venue at which any proceedings which he has power under Clause (3) to institute shall be instituted or to which such proceedings shall be transferred . </Li> </Ol> </Li> <Li> In the performance of his duties the Attorney General shall have the right of audience in, and shall take precedence over any other person appearing before, any court or tribunal in the Federation . </Li> <Li> Subject to Clause (6), the Attorney General shall hold office during the pleasure of the Yang di - Pertuan Agong and may at any time resign his office and, unless he is a member of the Cabinet, shall receive such remuneration as the Yang di - Pertuan Agong may determine . </Li> <Li> The person holding the office of Attorney General immediately prior to the coming into operation of this Article shall continue to hold the office on terms and conditions not less favourable than those applicable to him immediately before such coming into operation and shall not be removed from office except on the like grounds and in the like manner as a judge of the Federal Court . </Li> </Ol> <Li> The Yang di - Pertuan Agong shall, on the advice of the Prime Minister, appoint a person who is qualified to be a judge of the Federal Court to be the Attorney General for the Federation . </Li>

What is the role of an attorney general in malaysia
find me the text answering this question