Except for legal services performed by a deputy or assistant attorney general employed by the state, any legal services performed for the state or any branch, department, agency, institution, board, commission, or other entity of state government shall be performed pursuant to a written contract. All contracts for legal services shall be filed with the attorney general. The provisions of this section do not apply to any attorney employed by the Unified Judicial System, the Legislative Research Council, or the judicial or legislative branches of the state.
SDCL 1-11-15