compass.services.usage#

Ordinances usage tracking utilities

Classes

LLMRateTracker([label])

Track run-wide and per-model LLM usage rates on calls

LLMUsageTracker(label, response_parser)

Rate or API usage tracker

TimeBoundedUsageTracker([max_seconds])

Track usage of a resource over time

TimedEntry(value)

An entry that performs comparisons based on time added, not value