Interface: ChoiceResponse<T>
Interface: ChoiceResponse<T>
A selected label and its probabilities.
Type Parameters
T
T extends ChoiceCriteria = ChoiceCriteria
Properties
choice
readonly choice: keyof T & string;
The selected label.
confidence
readonly confidence: number;
Reported confidence in the selected label.
probabilities
readonly probabilities: { readonly [label in string | number | symbol]: number };
Probabilities keyed by label.
type
readonly type: "choice";