As an alternative to a petition filed pursuant to section 19-2-512, an adjudicatory trial pursuant to part 8 of this article, or disposition of a juvenile delinquent pursuant to section 19-2-907, the district attorney may agree to allow a juvenile to participate in a diversion program established in accordance with section 19-2-303.