Jason Goldman pens an excellent review of Anteater Culinary Science:

Overall, three major variables emerge that seem to govern the feeding decisions of giant anteaters:
(1) the type of soldier-based defense (chemical warfare is way more effective),
(2) the type of mound structure used, and
(3) the nutritional value.