A.I. story changed the narrative for markets in the first half of the year, strategist says