Choice

@Serializable
@SerialName(value = "choice")
data class Choice(val choice: DecisionValue, val confidence: Double, val probabilities: List<DecisionChoiceProbability>, val name: String? = null) : DecisionAnswer

Selected categorical value and its probability distribution.

Constructors

Link copied to clipboard
constructor(choice: DecisionValue, confidence: Double, probabilities: List<DecisionChoiceProbability>, name: String? = null)

Properties

Link copied to clipboard

Selected value, preserving whether it is a string or a boolean.

Link copied to clipboard

Confidence in the selected choice.

Link copied to clipboard
open override val name: String? = null

Original question name, or null for an unnamed question.

Link copied to clipboard

Probabilities over the available values.