FallbackNotice class final
The no-silent-degrade note: emitted through the listener callback before every retry/rotation/failover so the degradation is always visible.
Constructors
- FallbackNotice({required FallbackNoticeKind kind, required String fromModel, String? toModel, String? apiKeyName, required Duration delay, required int attempt, required String reason})
-
Creates a notice.
const
Properties
- apiKeyName → String?
-
The secrets-store name of the key taking over (keyRotation only) — the
name, never the value.
final
- attempt → int
-
1-based count of rate-limit failures seen in this provider call.
final
- delay → Duration
-
The sleep before the next attempt (zero for key/model switches, per
omp's delay-0-on-switch rule).
final
- fromModel → String
-
The
provider/modelIdthat just failed.final - hashCode → int
-
The hash code for this object.
no setterinherited
- kind → FallbackNoticeKind
-
What happens next.
final
- reason → String
-
The classified failure (truncated provider error text).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toModel → String?
-
The
provider/modelIdtaking over (modelFallback only).final
Methods
-
describe(
) → String - One-line rendering for hosts (the CLI prints it verbatim).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited