Skip to main content

接口:ChoiceResponse<T>

机器翻译译自英文(docs.typesafe.ai)本页 14 段已全部译完

文档索引

在以下地址获取完整的文档索引:https://docs.typesafe.ai/llms.txt 使用此文件可以在进一步探索之前发现所有可用页面。

接口:ChoiceResponse<T>

选定的标签及其概率。

类型参数

T

T 扩展 ChoiceCriteria = ChoiceCriteria

属性

choice

readonly choice: keyof T & string;

选定的标签。


confidence

readonly confidence: number;

对选定标签的报告置信度。


probabilities

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

以标签为键的概率。


type

readonly type: "choice";