What is the Role of An Attorney General?

The primary purpose of the Attorney General is to be the main legal adviser to a government. In addition to this the Attorney General may have a responsibility to law enforcement or public prosecutions.