Primitives
Choice, Score, Noul, confidence, and how questions compose in code.
Choice, Score, Noul, confidence, and how questions compose in code.
Three question types, one endpoint. Choice picks an option, Score places a state on a rubric, Noul returns P(yes).
Choice and Score return a full distribution. Use it when confidence is too coarse or you need expected values.
Choice selects one option from a map you define (up to 255), and returns the winner, a full distribution, and confidence.
Choice and Score include a confidence statistic derived from the distribution. Noul does not. Thresholds should scale with risk.
A Noul returns P(yes) for a yes/no question. There is no separate confidence field — the probability is the signal.
Score rates a state on 2–10 ordered levels and returns a probability-weighted value that can land between levels.
Instructions can be strings, objects, or arrays. Point at state with backtick paths such as ticket.messages[0].text.
Criteria are the answer space: a map for Choice, an ordered list for Score, optional true/false glosses for Noul.