Perseus
    Preparing search index...

    Type Alias RadioPromptJSON

    JSON describing a radio (multiple-choice) widget. Intended for consumption by AI tools. A radio widget presents a list of answer choices and asks the learner to select one (or, when multiple-select is enabled, one or more).

    type RadioPromptJSON = {
        hasNoneOfTheAbove: boolean;
        options: BasicOption[];
        type: "radio";
        userInput: { selectedOptions: ReadonlyArray<string> };
    }
    Index

    Properties

    hasNoneOfTheAbove: boolean

    Whether the widget includes a "None of the above" option. When true, the last entry in options represents that special choice.

    options: BasicOption[]

    The answer choices presented to the learner, in the order they appear on screen. The first choice is labeled "A", the second is "B", and so on.

    type: "radio"
    userInput: { selectedOptions: ReadonlyArray<string> }

    The current state of the widget user interface. Usually represents a learner's attempt to answer a question.

    Type Declaration

    • selectedOptions: ReadonlyArray<string>

      The IDs of the choices the learner has selected. Each entry corresponds to a choice's id field in options. Order is insignificant — scoring uses set membership, not position.