PrematureExecutionStopDecision

data class PrematureExecutionStopDecision(val conditionMet: Boolean, val conditionMetReason: () -> String)

Outcome of an early-stop check, e.g. the earlyStop callback of ai.koog.agents.optimization.training.dsl.StageScope.iterateDataset.

Constructors

Link copied to clipboard
constructor(conditionMet: Boolean, conditionMetReason: () -> String)

Properties

Link copied to clipboard

true when execution should stop before processing the next item.

Link copied to clipboard

Lazily evaluated human-readable reason, logged only when conditionMet is true.