DecisionAnswer class sealed
Base class for a calibrated decision answer in CreateDecisionResponse.
- Implementers
Constructors
-
DecisionAnswer.fromJson(Map<
String, dynamic> json) -
Parses a DecisionAnswer subclass from a JSON map based on
type.factory
Properties
- confidence → double
-
Closed-world confidence score in
[0, 1]equal to the calibrated probability of the winning outcome.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Discriminator identifying the answer kind (
'noul','choice', or'score').no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serializes this DecisionAnswer to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited