Companies are investing in AI agents and cutting staff, but talented professionals will find new opportunities.