AI calls in C