innercontext/backend
Piotr Oleszczyk 3c3248c2ea feat(api): add Phase 3 observability - expose validation warnings and metadata to frontend
Backend changes:
- Create ResponseMetadata and TokenMetrics models for API responses
- Modify call_gemini() and call_gemini_with_function_tools() to return (response, log_id) tuple
- Add _build_response_metadata() helper to extract metadata from AICallLog
- Update routines API (/suggest, /suggest-batch) to populate validation_warnings, auto_fixes_applied, and metadata
- Update products API (/suggest) to populate observability fields
- Update skincare API to handle new return signature

Frontend changes:
- Add TypeScript types: TokenMetrics, ResponseMetadata
- Update RoutineSuggestion, BatchSuggestion, ShoppingSuggestionResponse with observability fields

Next: Create UI components to display warnings, reasoning chains, and token metrics
2026-03-06 15:50:28 +01:00
..
alembic feat(api): add enhanced token metrics logging for Gemini API 2026-03-06 12:17:13 +01:00
innercontext feat(api): add Phase 3 observability - expose validation warnings and metadata to frontend 2026-03-06 15:50:28 +01:00
jobs/2026-03-02__17-12-31 feat(api): add short_id column for consistent LLM UUID handling 2026-03-06 10:58:26 +01:00
tests style: apply black and isort formatting 2026-03-06 10:17:00 +01:00
.coverage feat(api): add short_id column for consistent LLM UUID handling 2026-03-06 10:58:26 +01:00
.env.example fix: load .env via python-dotenv; SQLite default for local dev 2026-02-26 20:51:13 +01:00
.python-version Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
alembic.ini feat(backend): add Alembic migrations 2026-02-28 20:14:57 +01:00
db.py Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
main.py style: apply black and isort formatting 2026-03-06 10:17:00 +01:00
pgloader.config feat(api): add short_id column for consistent LLM UUID handling 2026-03-06 10:58:26 +01:00
pyproject.toml chore(backend): enable psycopg binary dependency 2026-03-04 21:46:38 +01:00
README.md Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
skincare.yaml Initial commit: backend API, data models, and test suite 2026-02-26 15:10:24 +01:00
test_query.py refactor(llm): optimize Gemini config profiles for extraction and creativity 2026-03-03 21:24:23 +01:00
uv.lock chore(backend): enable psycopg binary dependency 2026-03-04 21:46:38 +01:00

See the root README for setup and usage instructions.