With the rise of AI-assisted education,many instructors and engineers seek to deliver high-quality programming courses online.However,crafting effective programming lectures remains a challenge,particularly for instru...With the rise of AI-assisted education,many instructors and engineers seek to deliver high-quality programming courses online.However,crafting effective programming lectures remains a challenge,particularly for instructors lacking pedagogical training or multilingual fluency.We present CourseAgent,a prompt-driven framework that leverages large language models(LLMs)to automatically generate Python tutorials,structured lecture scripts,and accompanying audio narrations.CourseAgent accepts raw code as input and transforms it into segmented,well-commented code blocks,adapting content to different difficulty levels and languages via prompt customization.Our system supports multilingual instruction(e.g.,Chinese,English),fine-grained control of pedagogical depth,and auto-generation of lecture videos.We evaluate the output generated by CourseAgent using real student feedback and feedback from in-service teachers,alongside automated assessments from LLMs.These evaluations demonstrate that the materials produced by CourseAgent are coherent,pedagogically sound,and comparable in quality to those created by experienced instructors.CourseAgent lowers the barrier to quality programming education and shows promise for scalable,personalized,and language-adaptive content generation.展开更多
基金supported by the Zhejiang Province Leading Geese Plan(Grant No.2025C02025)the Guangdong Province Primary and Secondary School Teachers’Digital Literacy Enhancement Project 2025(Grant No.GDSZSYKT2025244).
文摘With the rise of AI-assisted education,many instructors and engineers seek to deliver high-quality programming courses online.However,crafting effective programming lectures remains a challenge,particularly for instructors lacking pedagogical training or multilingual fluency.We present CourseAgent,a prompt-driven framework that leverages large language models(LLMs)to automatically generate Python tutorials,structured lecture scripts,and accompanying audio narrations.CourseAgent accepts raw code as input and transforms it into segmented,well-commented code blocks,adapting content to different difficulty levels and languages via prompt customization.Our system supports multilingual instruction(e.g.,Chinese,English),fine-grained control of pedagogical depth,and auto-generation of lecture videos.We evaluate the output generated by CourseAgent using real student feedback and feedback from in-service teachers,alongside automated assessments from LLMs.These evaluations demonstrate that the materials produced by CourseAgent are coherent,pedagogically sound,and comparable in quality to those created by experienced instructors.CourseAgent lowers the barrier to quality programming education and shows promise for scalable,personalized,and language-adaptive content generation.