DecisionQuestion

@Serializable
sealed interface DecisionQuestion

A predicate, categorical choice or ordered score to evaluate against shared evidence.

Inheritors

Types

Link copied to clipboard
@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.

Link copied to clipboard
@Serializable
@SerialName(value = "predicate")
data class Predicate(val instructions: DecisionContent, val name: String? = null) : DecisionQuestion

Estimates the probability that a condition is true.

Link copied to clipboard
@Serializable
@SerialName(value = "score")
data class Score(val instructions: DecisionContent, val levels: List<DecisionScoreLevel>, val name: String? = null) : DecisionQuestion

Scores evidence against ordered rubric levels.

Properties

Link copied to clipboard

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

Link copied to clipboard
abstract val name: String?

Optional question name returned with its answer.