Interface: ChoiceAnswer<T>
类型参数
T
T extends ChoiceCriteria = ChoiceCriteria
属性
choice
ts
readonly choice: keyof T & string;概率最高的选项名。 / The most probable label.
confidence
ts
readonly confidence: number;对所选选项的置信度(0–1)。 / Confidence in the selected label (0–1).
probabilities
ts
readonly probabilities: { readonly [K in string]: number };每个选项的概率,总和为 1。 / Probability of each label; sums to 1.
type
ts
readonly type: "choice";
