A FastAPI chat agent built on LangGraph, with security guardrails (input sanitisation, PII detection via Presidio, output validation) and Postgres-backed conversation checkpointing.
- Python 3.12+
- uv
uv syncConfiguration is loaded from environment variables (see src/core/config/settings.py); a .env file is supported.
uv run uvicorn api.main:app --app-dir src --reloaduv run pytest # unit tests
uv run pytest -m integration # real network calls (needs credentials)
uv run pytest -m regression # LLM quality regression suitesrc/api/— FastAPI app and routes (chat, health, metrics, cache)src/app/security/— input sanitiser, PII detector, output validator, security guardsrc/core/— configuration and loggingtests/— unit, integration, and regression suites