接口接口:ChoiceResponse<T>

选中的标签及其概率。

类型参数

T

T extends ChoiceCriteria = ChoiceCriteria

属性

choice

ts
readonly choice: keyof T & string;

选中的标签。


confidence

ts
readonly confidence: number;

针对所选标签报告的置信度。


probabilities

ts
readonly probabilities: { readonly [label in string | number | symbol]: number };

以标签为键的概率。


type

ts
readonly type: "choice";