A comprehensive AI tutoring platform for AP courses using Letta's stateful agents. Each course has a dedicated AI tutor that remembers student interactions and adapts to individual learning needs.
- 6 AP Courses: Biology, US History, Spanish, French, Chemistry, Computer Science A
- Personalized AI Tutors: Each course has a specialized Letta agent with deep curriculum knowledge
- Adaptive Learning: Agents remember student strengths/weaknesses and provide targeted help
- Interactive Practice: Unit quizzes, review sessions, and full-length practice exams
- Language Learning: Speaking/listening practice for Spanish and French courses
- Progress Tracking: Detailed analytics and progress visualization
-
Clone and Install ```bash git clone cd ap-tutor-platform npm install ```
-
Get Letta API Key
- Sign up at app.letta.com
- Create an API key at app.letta.com/api-keys
-
Setup Environment ```bash cp .env.example .env.local
```
-
Create AI Tutors ```bash npm run setup-agents ```
-
Start Development Server ```bash npm run dev ```
The platform uses Letta's stateful agents [^1] to create persistent AI tutors that:
- Remember Everything: Each agent maintains memory of student interactions
- Adapt Over Time: Agents learn student strengths/weaknesses and adjust teaching
- Provide Expertise: Each tutor has comprehensive AP curriculum knowledge
- Track Progress: Agents store learning patterns in their long-term memory
Each tutor agent has specialized memory blocks:
- Persona: Teaching style and expertise
- Course Knowledge: Complete AP curriculum and exam format
- Student Progress: Individual learning patterns and weak areas
- Human: Student profile and preferences
- 8 units from Chemistry of Life to Ecology
- Lab analysis and data interpretation
- FRQ practice and exam strategies
- 9 historical periods from 1491-Present
- DBQ and LEQ writing practice
- Primary source analysis
- 6 thematic units with cultural focus
- Speaking and listening practice as well as AI conversation
- Authentic resource integration
- 9 units covering all major chemistry concepts
- Mathematical problem-solving
- Laboratory skills and analysis
- 10 units of Java programming
- Object-oriented programming concepts
- Algorithm development and analysis
- Frontend: Next.js 14, React, TypeScript, Tailwind CSS
- AI Agents: Letta Cloud with GPT-4.1 models
- UI Components: shadcn/ui with Radix primitives
- Styling: Tailwind CSS with custom design system
The platform is designed for easy extension:
- New Courses: Add course configs to
scripts/setup-agents.js - Enhanced Quizzes: Extend
QuizSectioncomponent with new question types - Progress Analytics: Add new metrics to
ProgressDashboard - Language Features: Expand
LanguageSectionwith more interactive elements
The chat interface uses the Vercel AI SDK with Letta provider [^1]:
```typescript import { lettaCloud } from '@letta-ai/vercel-ai-sdk-provider' import { streamText } from 'ai'
const result = streamText({ model: lettaCloud(agentId), prompt: userMessage, // Only send new message, not history }) ```
- Environment Variables: Ensure all
LETTA_AGENT_*variables are set - Build:
npm run build - Deploy: Compatible with Vercel, Netlify, or any Node.js hosting
- Fork the repository
- Create a feature branch
- Make your changes
- Test with your Letta agents
- Submit a pull request
MIT License - see LICENSE file for details.