DecisionChoiceAnswer class final

The answer to a DecisionChoiceQuestion: the picked option plus the full calibrated probability distribution over all options.

Inheritance

Constructors

DecisionChoiceAnswer({required String choice, required Map<String, double> probabilities, double? confidence})
const

Properties

choice → String
The picked option (one of the question's criteria keys).
final
confidence → double?
The provider's confidence in the pick, when reported.
final
hashCode → int
The hash code for this object.
no setterinherited
probabilities → Map<String, double>
The calibrated probability of every option (0..1 each).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → String
The wire type discriminator (mirrors the question's).
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
The wire form (per-answer shape depends on type).
override
toString() → String
A string representation of this object.
inherited

Operators

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