Skip to main content

Module question

Module question 

Source
Expand description

Typed question definitions, validated and rendered exactly as upstream does.

Structs§

Question
A question after validation, equivalent to upstream’s internal {"t": ..., "ins": ..., "crit": ...} triple.

Enums§

Criteria
Validated criteria, in label order.
QuestionKind
Question type, and the integer the model’s type embedding expects.

Functions§

render_criterion
Upstream’s render_criterion: strings pass through, anything structured becomes compact JSON so a rubric reads as JSON rather than a Python repr.