http://www.brasil.gov.br/sobre/brazil/structure/the-federal-counsel-general

The Attorney General of the Union (AGU) is the highest advisory body to the Executive. The Brazilian Federal Constitution classifies it as essential to justice. Therefore, the national court takes the position of senior management and is not linked to any of the three branches (Executive, Legislative and Judiciary).
The AGU advises the president on legal matters and internal control of the legality of administrative acts, and to suggest measures of legal character claimed by public interest. The institution must also ensure that laws are applied properly and to prevent and resolve deadlocks between the judicial organs of the federal administration.
The court interprets the Constitution, laws, treaties and other normative acts. This interpretation has to be followed uniformly by agencies and entities of the federal administration, so that the administrative jurisprudence law in Brazil is unified. The jurisprudence is the interpretation of the law based on decisions of previous trials on similar causes.
One of the functions of the Attorney General of the Union (AGU) is to guide and supervise the technical legal bodies of municipalities and public foundations.
The institution represents the Union, judicially and extra judicially, where this figure is an author, a defendant or a third party. The parties responsible for these activities are the Union of Lawyers, Attorneys of the National Treasury and the Federal Attorneys. The judicial representation and legal advice of the Federal States are organized as follows:
. The Attorney General's Office represents the Union before the Supreme Court;
. The Attorney General's Office represents the Union before the Superior Court in civil and labor issues, and the Attorney General of the Treasury, in the implementation of outstanding debts to tax;
. The Regional Attorneys represent the Union in the Federal Regional Courts in the five regions of Brazil, established in the Federal District, in Rio de Janeiro, São Paulo, Rio Grande do Sul and Pernambuco;
. The Chief State Attorneys represent the Union in the first instance in the capitals (Federal Justice and Labor), and the Sectional Prosecutors and the Representative Offices in the first instance in the interior of Brazil.
Source: (content in portuguese)
AGU