Skip to main content

Module answer

Module answer 

Source
Expand description

Central answer normalization and typed projections.

Structs§

Answer
A normalized answer. Undecided answers retain evidence and call metadata.
Call
Metadata actually reported by one provider call.

Enums§

AnswerValue
A heterogeneous decided value.

Traits§

AnswerType
Conversion supported by a typed answer.

Functions§

complement
Python-compatible round(1 - p, 10) for a finite probability in [0, 1]. Invalid inputs return an argument error rather than entering normalization.
make_answer
Validate a provider candidate and centrally apply ties and confidence thresholds.
token_count
Return a nonnegative JSON integer token count, rejecting booleans and floats.

Type Aliases§

Probabilities
Ordered outcome probabilities.