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
typematching its question. Choice and Score answers also carry aconfidencebetween 0 to 1, derived from the answer’s probability distribution.
Structs§
- Choice
Answer probabilitiesis a full distribution (sums to 1) over the criteria keys.confidenceis required (per spec).f64for wire-format precision.- Noul
Answer - Spec:
noulis a number 0..1. Noconfidencefield — Noul answers don’t get one per the spec. - Score
Answer legendis level-index (string) → level description.probabilitiesis keyed by the same index strings.confidencerequired.f64for wire-format precision.
Enums§
- Answer
- Tagged union of answer models matching the evaluated question types.