Consumption Metric
Total / min / max / avg LLM consumption across substages. Canonical totals are final-attempt only; withRetries, when non-null, exposes the retries-aware counterparts.
Constructors
Types
Key holder for ConsumptionMetric.
Properties
Mean per-substage total cost across finished substages, or null if none.
The key that identifies this metric in a ai.koog.agents.optimization.training.metrics.MetricsMap.
Largest per-substage total cost across finished substages, or null if none.
Smallest per-substage total cost across finished substages, or null if none.
Running sum of LLM consumption across substages (final-attempt only), or NA if none observed.
Retries-aware totals; null when no retries fired below this stage.
Functions
Recompute this metric from the full list of substages records.
Get the total as an LLMConsumption or null.