Failed Attempt
A single failed attempt that preceded the final attempt of a retried operation.
Lives in AgentRunRecord.previousAttempts / PromptExecutionRecord.previousAttempts / DatasetItemEvaluation.previousAttempts. The list order matches execution order.
Constructors
Properties
0-indexed position in the retry sequence. attemptIndex == 0 is the original attempt (whose failure triggered the first retry); attemptIndex == 1 is the first retry attempt that itself failed; and so on.
LLM consumption recorded for this attempt, or N/A when unavailable.
Wall-clock delay applied before this attempt started, per the retry policy. Duration.ZERO for the original attempt (attemptIndex == 0).
Wall-clock time this attempt itself took (excludes the delay before it).
The classified failure this attempt ended with.