Skip to main content

Module question

Module question 

Source
Expand description

Typed questions: Noul, Choice and Score.

Instructions, option descriptions and score levels accept any JSON value (&str, String, or serde_json::json!({...}) for structured rubrics), per the API’s “advanced structure” support.

Structs§

Choice
Pick one option from a set you define.
Noul
A yes/no question; the answer is the probability of “yes”.
NoulCriteria
Descriptions of the yes (true) and no (false) outcomes of a Noul.
Questions
Ordered map of question name → question. Answers come back under the same names.
Score
Rate the state along ordered levels; the answer is a probability-weighted level index.

Enums§

Question
Any question. Raw passes a hand-built JSON object through (after light validation), which is useful for fields this SDK version does not model yet.