Ehsaas-Tiwari/LLM-Analysis-Quiz
LLM Analysis Quiz โ Automated Solver
This project implements an automated agent that solves data-related quiz tasks using LLMs, Playwright scraping, and dynamic code execution. It exposes a FastAPI /solve endpoint that the evaluator will call during the exam.
๐ Features
/solve endpoint with secret validation
Background agent that visits quiz URLs, extracts tasks, solves them, and submits answers
Playwright-based JS-rendered scraping
File downloading, data analysis, and chart generation
Recursive quiz solving until no further URL is provided
Docker-ready and uv-based environment
๐ API Usage
POST /solve
Request body:
{ "email": "your-email", "secret": "your-secret", "url": "https://tds-llm-analysis.s-anand.net/demo" }
Server responds immediately with:
{"status":"ok"}
The agent continues solving the quiz in the background.
๐ Environment Variables
Create .env:
EMAIL=your-email SECRET=your-secret OPENAIAPIKEY=your-key
๐ License
MIT License.
