xml-pipeline/xml_pipeline/llm
dullfig d0d78a9f70 Add usage persistence for billing (SQLite)
- UsageStore with async SQLite persistence via aiosqlite
- Background batch writer for non-blocking event persistence
- Auto-subscribes to UsageTracker for transparent capture
- Query methods: query(), get_billing_summary(), get_daily_usage()
- REST API endpoints: /usage/history, /usage/billing, /usage/daily
- Filtering by org_id, agent_id, model, time range
- 18 new tests for persistence layer

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 21:58:22 -08:00
..
__init__.py Add usage persistence for billing (SQLite) 2026-01-27 21:58:22 -08:00
backend.py Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
router.py Add BudgetWarning system alerts for token budget thresholds 2026-01-27 21:41:34 -08:00
token_bucket.py Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
usage_store.py Add usage persistence for billing (SQLite) 2026-01-27 21:58:22 -08:00
usage_tracker.py Add token budget enforcement and usage tracking 2026-01-27 21:07:43 -08:00