Schemas
Questions
Noul
NoulCriteria
Bases: BaseSchema
Optional descriptions of the two noul outcomes.
Source code in system_one/schemas.py
Choice
Bases: BaseSchema
A pick-one question over labelled options.
Source code in system_one/schemas.py
Score
Bases: BaseSchema
An ordinal question whose criteria index is the score.
Source code in system_one/schemas.py
Answers
NoulAnswer
Bases: ConfidentAnswer
A yes/no answer, where noul is the probability the statement holds.
Source code in system_one/schemas.py
ChoiceAnswer
Bases: ConfidentAnswer
The selected label and, when reported, the distribution it came from.
Source code in system_one/schemas.py
ScoreAnswer
Bases: ConfidentAnswer
A probability-weighted expected score, not an argmax.
Source code in system_one/schemas.py
ConfidentAnswer
Bases: BaseSchema
An answer that reports how much to trust itself on one scale for every type.
The hosted API always sends confidence; _derive fills it in for providers that
do not. A payload it cannot trust leaves confidence unset, because an absent
confidence is honest while a fabricated 1.0 is not.
Source code in system_one/schemas.py
Request and response
SystemOneInput
Bases: BaseSchema
The single normalized input shared by every backend.
Source code in system_one/schemas.py
SystemOneOutput
Bases: BaseSchema
Answers keyed by question name, with model and usage metadata.
Source code in system_one/schemas.py
Usage
Bases: BaseSchema
Token counts, and cost where the provider reports one.