AttemptMetrics

data class AttemptMetrics(val elapsedTime: Duration, val consumption: LLMConsumptionOrNA)

Metrics the retry wrapper collects after each attempt (success or failure). The caller supplies them via retryWith's collectAttemptMetrics callback — typically by reading consumptionTracker.collectAndClear() and a captured TimeMark.elapsedNow().

Constructors

Link copied to clipboard
constructor(elapsedTime: Duration, consumption: LLMConsumptionOrNA)

Properties

Link copied to clipboard

LLM consumption recorded for the attempt, or N/A when unavailable.

Link copied to clipboard

Wall-clock time the attempt took.