Package com.smartgwt.client.docs
Interface AIRetriesExhausted
public interface AIRetriesExhausted
A CoTTask can automatically retry when its outputs fail validation (via CoTTask.outputDS/ CoTTask.outputFields) or when
Process.beforeTaskCommit() returns errors. The retry budget is controlled by CoTTask.maxRetries and, if unset on the task, inherits from CoTProcess.maxRetries. A response that is not valid JSON, or that names a goTo the task's CoTTask.transitions do not allow, is retried the same way. Each retry re-runs the task with the problems found included in its prompt. The policy is CoTProcess.handleOutputValidationFailure(), which subclasses may override.
What happens when retries are exhausted
If every attempt fails up to the retry budget:- No CoTTask.stateUpdates are committed.
- The process halts immediately (no fallback routing).
Process.failed()is fired with aProcessFailurewhosecodeis"taskOutputValidation", whosemessagenames the failing task and its last problem, and whoseerrorsare the final validation errors.
Detecting retry exhaustion
isc.CoTProcess.create({
...
failed : function (failure) {
if (failure.code == "taskOutputValidation") {
isc.logWarn("CoT halted: " + failure.message);
}
}
});