Choice

@Serializable
@SerialName(value = "choice")
data class Choice(val instructions: DecisionContent, val choices: List<DecisionChoice>, val name: String? = null) : DecisionQuestion

Selects among distinct string or boolean values.

Constructors

Link copied to clipboard
constructor(instructions: DecisionContent, choices: List<DecisionChoice>, name: String? = null)

Properties

Link copied to clipboard

Between two and 255 options; string and boolean values remain distinct.

Link copied to clipboard
open override val instructions: DecisionContent

Instructions expressed as text or input text/image/JSON parts without cache breakpoints.

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

Optional question name returned with its answer.