ChoiceQuestion interface

A multiple-choice question with a fixed set of candidate option strings.

Signature:

export declare interface ChoiceQuestion 

Properties

Property Type Description
options string[] Non-empty array of candidate option strings to score.
question string The question prompt text.
scoringMode ScoringMode | undefined Optional per-question scoring strategy override.
type 'choice' | undefined Optional discriminator tag ('choice') when passed to DecisionMaker.evaluate().

ChoiceQuestion.options

Non-empty array of candidate option strings to score.

Signature:

options: string[];

ChoiceQuestion.question

The question prompt text.

Signature:

question: string;

ChoiceQuestion.scoringMode

Optional per-question scoring strategy override.

Signature:

scoringMode?: ScoringMode;

ChoiceQuestion.type

Optional discriminator tag ('choice') when passed to DecisionMaker.evaluate().

Signature:

type?: 'choice';