Package-level declarations
Types
Thrown by runAgent().getOrThrow() / runAgentOrThrow() to propagate a recorded agent run failure. The failedRecord is already added to the stage's substages before this exception is constructed.
Thrown synchronously by StageScope.iterateDataset after the loop completes, when the observed per-item failure rate exceeds the configured threshold. Carries the structured cause (rate + threshold) so the recognizer can describe the abort without parsing a string.
Thrown when a prompt execution fails. Wraps the already-recorded PromptExecutionRecord.Failed so that the enclosing resolveStageFailure can extract the analyzed failure directly.
Thrown by runStage(...).getOrThrow() / runStageOrThrow() to propagate a recorded stage failure. The failedRecord is already added to the parent's substages before this exception is constructed.
Functions
Returns the AnalyzedFailure for an exception caught inside a stage block.