The Attorney General shall attend the legislature during its session, and shall give his aid and advice in the arrangement and preparation of legislative acts and documents, when required by either the senate or the house.