Completed

@SerialName(value = "Agent run: completed")
@Serializable
data class Completed(val agentOutput: String, val score: Double, val solved: Boolean, val elapsedTime: Duration, val consumption: LLMConsumptionOrNA, val previousAttempts: List<FailedAttempt> = emptyList()) : AgentRunRecord

Agent ran to completion without infrastructure failure.

Constructors

Link copied to clipboard
constructor(agentOutput: String, score: Double, solved: Boolean, elapsedTime: Duration, consumption: LLMConsumptionOrNA, previousAttempts: List<FailedAttempt> = emptyList())

Properties

Link copied to clipboard

Final output produced by the agent.

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
@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).

Link copied to clipboard

Evaluation score assigned to this run.

Link copied to clipboard

Whether the run is considered to have solved the task.

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.