Failed

@SerialName(value = "Agent run: failed")
@Serializable
data class Failed(val failure: AnalyzedFailure, val elapsedTime: Duration, val consumption: LLMConsumptionOrNA, val previousAttempts: List<FailedAttempt> = emptyList()) : AgentRunRecord

Agent run failed with an infrastructure error.

Constructors

Link copied to clipboard
constructor(failure: AnalyzedFailure, elapsedTime: Duration, consumption: LLMConsumptionOrNA, previousAttempts: List<FailedAttempt> = emptyList())

Properties

Link copied to clipboard
open override val consumption: LLMConsumptionOrNA

LLM consumption attributable to the final attempt. For an aggregate over all attempts, see aggregatedConsumption.

Link copied to clipboard
open override val elapsedTime: Duration

Wall-clock elapsed time of the final attempt (the successful one, or the last failed attempt if no attempt succeeded). For an aggregate including all prior failed attempts and the wait delays between them, see aggregatedElapsedTime.

Link copied to clipboard

Failure analysis of the final failed attempt.

Link copied to clipboard
@EncodeDefault(mode = EncodeDefault.Mode.NEVER)
open override val previousAttempts: List<FailedAttempt>

Failed attempts preceding the final attempt; empty if no retries were performed. Order matches execution order (first failed attempt first).

Functions

Link copied to clipboard

Final attempt + retry attempts. Returns NA only if every contributing value is NA.

Link copied to clipboard

Final attempt + retry attempts + retry wait delays.

Link copied to clipboard

Get the consumption of any record.

Link copied to clipboard

Retry attempts only (excludes the final attempt). NA if all retries had NA consumption.

Link copied to clipboard

Retry-attempt elapsed + retry wait delays (excludes the final attempt).

Link copied to clipboard

Check if a record (or its substages recursively) contains any solved agent run.