xml-pipeline/xml_pipeline
dullfig 860395cd58 Add usage/gas tracking REST API endpoints
Endpoints:
- GET /api/v1/usage - Overview with totals, per-agent, per-model breakdown
- GET /api/v1/usage/threads - List all thread budgets sorted by usage
- GET /api/v1/usage/threads/{id} - Single thread budget details
- GET /api/v1/usage/agents/{id} - Usage totals for specific agent
- GET /api/v1/usage/models/{model} - Usage totals for specific model
- POST /api/v1/usage/reset - Reset all usage tracking

Models:
- UsageTotals, UsageOverview, UsageResponse
- ThreadBudgetInfo, ThreadBudgetListResponse
- AgentUsageInfo, ModelUsageInfo

Also adds has_budget() method to ThreadBudgetRegistry for checking
if a thread exists without auto-creating it.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 21:20:36 -08:00
..
config Rebrand Nextra → OpenBlox 2026-01-27 20:31:13 -08:00
crypto Add Ed25519 envelope signing infrastructure 2026-01-27 20:00:35 -08:00
listeners Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
llm Add token budget enforcement and usage tracking 2026-01-27 21:07:43 -08:00
memory Add shared backend for multiprocess pipeline support 2026-01-20 20:18:22 -08:00
message_bus Add usage/gas tracking REST API endpoints 2026-01-27 21:20:36 -08:00
platform Archive obsolete docs and misc cleanup 2026-01-20 20:20:10 -08:00
primitives Add Sequence and Buffer orchestration primitives 2026-01-25 14:56:15 -08:00
prompts Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
schema Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
server Add usage/gas tracking REST API endpoints 2026-01-27 21:20:36 -08:00
tools Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
utils Rename agentserver to xml_pipeline, add console example 2026-01-19 21:41:19 -08:00
__init__.py Move console, auth, server to Nextra (v0.4.0) 2026-01-19 22:37:21 -08:00
cli.py Add AgentServer REST/WebSocket API 2026-01-27 20:22:58 -08:00