A. The county attorney shall:
1. Direct the investigation the county attorney deems necessary of acts of alleged delinquent behavior.
2. File petitions alleging delinquent behavior with the juvenile court as the county attorney deems necessary in the public interest.
3. Except pursuant to section 8-323, attend the juvenile court within the county attorney’s county and conduct on behalf of the state all contested hearings that involve allegations of delinquent acts or incorrigibility.
B. The county attorney may establish and administer the activities of community based alternative programs.