Back to projects

Leo-Multi-Agent-AI-Tutor

PythonFastAPIGitHubmulti-model

Welcome to Leo, an intelligent, multi-agent tutoring system built using CrewAI and powered by Google's Gemini 3.5 Flash Large Language Model. Unlike standard single-prompt chatbots, Leo utilizes a team of four highly specialized, autonomous AI agents that collaborate to plan, teach, assess, and evaluate a student on any chosen topic.

Features

  • Features Multi-Agent Orchestration: Distributes the cognitive load across specialized AI personas. Sequential Processing: Guarantees that agents pass work to each other in a strict, logical order. Dynamic Context Handoffs: Ensures the Quiz Master only asks questions based on what the Explainer actually taught, eliminating hallucinations. Interactive CLI: Allows students to input any topic and watch the agents work in real-time.
  • The Agents and Their Roles 1. Tutor Coordinator (The Manager) Goal: Analyze the student's chosen topic and orchestrate the lesson plan. Task: Breaks the topic down into 2โ€“3 essential learning objectives and establishes the scope of the lesson. 2. Expert Explainer (The Teacher) Goal: Teach the concept clearly and concisely based on the Coordinator's plan. Task: Uses analogies and real-world examples to explain complex topics without heavy jargon. 3. Quiz Master (The Assessor) Goal: Create a structured multiple-choice quiz. Task: Reads the Explainer's lesson and generates practice questions testing only the core concepts covered in the text. 4. Feedback Evaluator (The Grader) Goal: Evaluate the quiz and provide constructive feedback. Task: Generates the definitive answer key, detailed step-by-step reasoning for why options are right/wrong, and provides encouraging feedback.