pub struct Answer {Show 18 fields
pub kind: QuestionType,
pub probabilities: IndexMap<String, f64>,
pub confidence: Option<f64>,
pub choice: Option<String>,
pub noul: Option<f64>,
pub score: Option<f64>,
pub legend: Option<IndexMap<String, String>>,
pub selected: Option<Vec<String>>,
pub threshold: Option<f64>,
pub set_confidence: Option<f64>,
pub action: Option<String>,
pub answer: Option<String>,
pub expected_costs: Option<IndexMap<String, f64>>,
pub calibration: Option<String>,
pub refused: Option<String>,
pub max_error: Option<String>,
pub evidence: Option<Vec<EvidenceSpan>>,
pub extra: Map<String, Value>,
}Expand description
Native answer. Fields used by other question types are absent. Unknown fields are retained in extra.
Fields§
§kind: QuestionTypeQuestion type.
probabilities: IndexMap<String, f64>Native probabilities (for multi: independent P(yes) values).
confidence: Option<f64>Native max probability for choice, noul, score and act. Multi uses set_confidence.
choice: Option<String>Chosen key for choice.
noul: Option<f64>P(yes) for noul.
score: Option<f64>Weighted zero-based score.
legend: Option<IndexMap<String, String>>Displayed option texts for score, indexed by key.
selected: Option<Vec<String>>Selected keys for multi.
threshold: Option<f64>Multi selection threshold.
set_confidence: Option<f64>Probability of precisely the selected set for multi.
action: Option<String>Chosen action for act.
answer: Option<String>Most probable outcome for act.
expected_costs: Option<IndexMap<String, f64>>Expected costs by action for act.
calibration: Option<String>Calibration status for act.
refused: Option<String>Refused automatic action for act.
max_error: Option<String>Message when the requested certified threshold is unavailable.
evidence: Option<Vec<EvidenceSpan>>Evidence offsets count Unicode characters, not bytes or UTF-16 code units.
extra: Map<String, Value>Future native fields.