How balayogesh29/ai-assignment-agent works
AI Assignment Agent generates academic assignment drafts from a topic and page target. Users can submit, view, and manage drafts in either the React client or the standalone HTML/JavaScript client; those clients use separate documented backend options. The Python API delegates prompt construction and Gemini generation to backend modules, while the Express server handles generation itself. The React app also supports recent assignments and copy, regenerate, and clear actions. Relationships for the standalone client and Python service are documented in the README; source excerpts show the generation calls.
Main entry points: ai_agent.py Gemini agent · App.tsx Assignment workspace · script.js HTML client · main.py Generate API
Components 10
React Client
- Assignment workspace
src/App.tsx - React mount
src/main.tsx
Standalone Client
- HTML client
frontend/script.js
FastAPI Backend
- Generate API
backend/main.py - Gemini agent
backend/ai_agent.py - Academic prompts
backend/prompts.py
Express Backend
- Generate API
server.ts - Gemini generation
server.ts
Other components
- Assignment user
- Google Gemini
Connections 10
- Assignment user → Assignment workspace: submits topic
README.md - React mount → Assignment workspace: mounts
src/main.tsx - Assignment workspace → Generate API: posts request
src/App.tsx - Generate API → Gemini generation: dispatches generation
server.ts - Gemini generation → Google Gemini: requests draft
server.ts - Assignment user → HTML client: submits topic
README.md - HTML client → Generate API: posts request
README.md - Generate API → Gemini agent: calls generator
backend/main.py - Gemini agent → Academic prompts: builds prompt
backend/ai_agent.py - Gemini agent → Google Gemini: requests draft
backend/ai_agent.py