Diversity-augmented training for generalizable AI agents