How dishakd21/python_error_debugging_assistant works
PyDebug AI accepts uploaded Python files (and ZIP projects in the integrated client), optional traceback context, and returns a diagnosis, explanation, corrected code, changes, and tests. The main workflow runs from the client through FastAPI to prompt construction and Gemini analysis. The README also describes temporary-project assembly and pytest validation; the corresponding debugger service is present but was not excerpted, so its implementation details and connections are not asserted. The tree contains a separate frontend whose debug button is still a placeholder. The README's deterministic fallback claim conflicts with the sampled Gemini service, which returns a configuration error when no API key is set.
Main entry points: gemini.py Model analysis · debug.py Upload handler · debugger.py Debugger service · App.jsx Debug client
Components 13
Client applications
- Debug client
client/src/App.jsx - Upload prototype
frontend/src/App.jsx
API ingress
- FastAPI app
backend/app/main.py - Upload handler
backend/app/routes/debug.py
Debug analysis
- Model analysis
backend/app/services/gemini.py - Prompt builder
backend/app/prompts/debugging_prompt.py - Model configuration
backend/app/config.py - Traceback parser
backend/app/services/traceback_parser.py - Debugger service
backend/app/services/debugger.py
Validation
- Pytest validation
backend/app/services/debugger.py
Other components
- Developer
- Gemini API
- Debug result
Connections 13
- Developer → Debug client: uploads and submits
client/src/App.jsx - Debug client → Upload handler: posts files
client/src/App.jsx - Developer → Upload prototype: uploads files
frontend/src/App.jsx - FastAPI app → Upload handler: registers routes
backend/app/main.py - Upload handler → Model analysis: passes project
backend/app/routes/debug.py - Model analysis → Prompt builder: builds prompt
backend/app/services/gemini.py - Model analysis → Model configuration: reads settings
backend/app/services/gemini.py - Model analysis → Gemini API: requests analysis
backend/app/services/gemini.py - Model analysis → Debug result: returns JSON result
backend/app/services/gemini.py - Upload handler → Debug result: returns result
backend/app/routes/debug.py - Debugger service → Model analysis: uses model service
backend/app/services/debugger.py - Debugger service → Pytest validation: runs validation
README.md - Upload handler → Pytest validation: validates project
README.md