Class ResponseCorrectionRetryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ai.redouble.nucleo.harness.errors.retry.ResponseCorrectionRetryException
- All Implemented Interfaces:
Serializable
Signals that an LLM response failed to parse or validate, a correction message
has already been appended to the conversation, and the job should be re-run so
the model can fix its output. The framework catches this in
JobDispatcher.executeWithRetry and restarts the job transparently; the
caller (normally LLMCall) tracks its own correction
budget and stops throwing once that budget is exhausted, so the dispatcher's
cap is only a backstop against runaway jobs.
This is NOT an LLMReadableException: like
OutputTruncationRetryException, it is a deterministic framework retry,
invisible to the LLM above and to the end user. The underlying correctable
failure travels as the cause.
- Since:
- 0.1 (2026-06-09)
- Author:
- Andrey Santrosyan
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionResponseCorrectionRetryException(String modelName, int correctionAttempt, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ResponseCorrectionRetryException
-
-
Method Details
-
getModelName
-
getCorrectionAttempt
public int getCorrectionAttempt()
-