A prosecuting attorney advising a law enforcement officer or law enforcement agency, as defined in Section 36-21-55, on any matter of criminal procedure, civil procedure, criminal charges, or criminal investigations within the prosecuting attorney’s scope of authority is deemed a prosecutorial function. (Act 2025-330, §1.)