Interface AttemptOutcome

One attempt a call made to its provider, as ModelCompletionOptions.onAttempt reports it.

interface AttemptOutcome {
    attempt: number;
    status: null | number;
    ok: boolean;
}

Properties

Properties

attempt: number

The attempt's number in the call, from 1.

status: null | number

The HTTP status its last send answered (after any key hops inside it), or null when none came (a timeout, a network failure).

ok: boolean

True when it answered with a success.