Examining the Role of LLM-Driven Interactions on Attention and Cognitive Engagement in Virtual Classrooms