How madhuu1706/vedantu_chat_agent- works
This is a student-facing study coach for Shimon Sir’s Vedantu Tamil class. The main workflow is a student submitting a question in the React app, the server routing it to Lyzr with Gemini as fallback, and returning a transcript-grounded reply. The UI also offers session controls, a simulated live-question feed, class details, and a Pomodoro study timer. Edges reflect calls shown in the excerpts or explicitly documented behavior; unsampled client details are not inferred.
Main entry points: App.tsx Study Coach App · server.ts HTTP API Server · Sidebar.tsx Session Sidebar · types.ts Shared Chat Types
Components 13
Study Coach UI
- Study Coach App
src/App.tsx - Chat Sessions
src/App.tsx - Session Sidebar
src/components/Sidebar.tsx - Pomodoro Timer
src/components/PomodoroTimer.tsx - Live Question Feed
src/components/LiveFeed.tsx - Shared Chat Types
src/types.ts - React Entry Point
src/main.tsx
Chat Services
- HTTP API Server
server.ts - Lyzr Agent API
- Gemini Model
- Class Details API
server.ts
Class Knowledge
- Class Transcript KB
src/data/classTranscript.ts
Other components
- Student
Connections 16
- Student → Study Coach App: asks question
src/App.tsx - Study Coach App → HTTP API Server: posts chat
src/App.tsx - HTTP API Server → Lyzr Agent API: tries inference
server.ts - HTTP API Server → Gemini Model: fallback generation
server.ts - HTTP API Server → Class Transcript KB: grounds fallback
server.ts - HTTP API Server → Study Coach App: returns reply
server.ts - Study Coach App → Chat Sessions: manages sessions
src/App.tsx - Study Coach App → Session Sidebar: renders controls
src/App.tsx - Session Sidebar → Pomodoro Timer: renders timer
src/components/Sidebar.tsx - Study Coach App → Live Question Feed: renders feed
src/App.tsx - Live Question Feed → Study Coach App: submits question
src/App.tsx - Study Coach App → Class Details API: requests details
- React Entry Point → Study Coach App: mounts app
src/main.tsx - Study Coach App → Shared Chat Types: uses types
src/App.tsx - Session Sidebar → Shared Chat Types: uses types
src/components/Sidebar.tsx - Pomodoro Timer → Shared Chat Types: uses mode type
src/components/PomodoroTimer.tsx