Interface: ChoiceResponse<T>
Documentation Index
Fetch the complete documentation index at: https://docs.typesafe.ai/llms.txt Use this file to discover all available pages before exploring further.
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";