Global AI investment in the second quarter reached $42.6 billion, with autonomous AI agent companies capturing almost half of all capital raised.