Status: Production Ready (Fly.io Compatible)
Type: Deterministic Rule Engine + Optional AI Enrichment
VDCS is a "Glass Box" diagnostic intelligence engine. It is designed to be:
- Deterministic: The same input always produces the exact same output.
- Honest: It explicitly states when it is guessing versus when it knows.
- Secure: No external calls (unless configured), strictly validated inputs.
- Stateless: No user data is persisted.
- Endpoint:
POST /diagnose - Format: JSON Input -> JSON Output
- Schema: See
/docsfor full OpenAPI spec.
{
"vehicle": { "make": "Honda", "model": "Civic", "year": 2010, "mileage_km": 260000, "fuel_type": "petrol" },
"environment": { "region": "US_METRO", "city_size": "medium" },
"dtcs": [{ "code": "P0420", "status": "active" }]
}- Install:
pip install -r requirements.txt - Env: Copy
.env.exampleto.env(Optional for Gemini). - Run:
uvicorn app.main:app --reload
The project includes a production-ready Dockerfile.
- Build:
docker build -t vdcs . - Run:
docker run -p 8080:8080 --env-file .env vdcs
Gemini is used strictly to refine the tone of the summary. It CANNOT change urgency or costs. To enable:
- Set
ENABLE_GEMINI=truein.env. - Set
GEMINI_API_KEY=your_key. - Set
GEMINI_MODEL=gemini-1.5-pro.
- No Auth: Currently public API (add API Gateway for auth).
- Input Validation: Strict Pydantic v2 rules.
- Safe AI: Gemini fails silently if it errors/timeouts, ensuring 100% uptime for the rule engine.