AbstainReason class final

Why a decider abstained.

A class with constant instances rather than an enum, as DeciderMethod is, so a reason added in a later release does not break an app's exhaustive switch.

Annotations

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Stable name: belowThreshold, noCandidates, noneOption.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

belowThreshold → const AbstainReason
The answer's abstain signal is below the decider's calibrated threshold (provenance.abstainSignal < provenance.threshold): the request fits none of the candidates. What the signal is — a cosine, a probability — is provenance.abstainSignalKind.
noCandidates → const AbstainReason
among left no candidate.
noneOption → const AbstainReason
The option the decider's calibration names as "none of these" ranked first (a model trained with one). It stays in ranked and probabilities.
values → const List<AbstainReason>
Every reason this release knows, in declaration order.