Skip to main content

Module metering

Module metering 

Source
Expand description

Cost tracking and quota enforcement engine.

The MeteringEngine calculates costs based on model pricing tables and persists usage data through the memory substrate. It supports per-fighter and aggregate spend queries across configurable time periods.

Structs§

MeteringEngine
Engine for tracking LLM costs and enforcing spend quotas.
ModelPrice
Pricing for a specific model (cost per million tokens).

Enums§

SpendPeriod
Time period for spend queries.