Skip to main content

Module answer

Module answer 

Source
Expand description

Wire answer types for Noul, Choice, and Score evaluations. Answer types — one per Question type.

Spec: https://docs.typesafe.ai/api#answer-types

Every answer carries a type matching its question. Choice and Score answers also carry a confidence between 0 to 1, derived from the answer’s probability distribution.

Structs§

ChoiceAnswer
probabilities is a full distribution (sums to 1) over the criteria keys. confidence is required (per spec). f64 for wire-format precision.
NoulAnswer
Spec: noul is a number 0..1. No confidence field — Noul answers don’t get one per the spec.
ScoreAnswer
legend is level-index (string) → level description. probabilities is keyed by the same index strings. confidence required. f64 for wire-format precision.

Enums§

Answer
Tagged union of answer models matching the evaluated question types.