Expand description
System One wire format: request validation and response construction.
This mirrors the contract implemented by fastjev’s compat/wire.py
(https://github.com/chengyongru/fastjev, MIT). The adapter preserves the
public wire shape; it does not claim Jev’s model behaviour, and the
returned probabilities are conditional option scores, not calibrated
decision confidence.
Structs§
- Fastjev
Meta - The bridge’s own extension block, mirroring fastjev’s System One adapter.
- Ordered
Map - An ordered map that serialises as a JSON object.
- Question
- One question asked about a shared state.
- Question
Spec - What a validated question asks for, kept for building the response.
- Readout
Status - What the deployment knows about this bridge’s readout channel.
- Request
Batch - A validated System One request, reduced to what the scorer needs: the one state every question shares, and the questions themselves.
- Row
- One decision, in the shape the scorer and the
--scorefixture both use. - RowOption
- One answer option handed to the scorer.
- Scored
Answer - A scorer result reduced to what the wire layer needs.
- System
OneResponse - The documented System One response shape.
- Usage
- Token accounting for one request.
- Wire
Error - A request that cannot be represented by the scoring backend.
Enums§
- Answer
- One answer in a System One response.
- Confidence
Method - The certainty proxy that turns one distribution into one number.
- Kind
- The three question shapes the System One API defines.
Constants§
- CONFIDENCE_
METHOD - How the bridge derives its certainty proxy.
- CONFIDENCE_
METHOD_ MAX_ PROBABILITY - The method name for
ConfidenceMethod::MaxProbability. - MAX_
OPTIONS - The largest number of options a
choicequestion may offer. - MAX_
SCORE_ LEVELS - The largest number of levels a
scorequestion may offer. - PROBABILITY_
STATUS - The disclaimer attached to every returned probability.
- UNVALIDATED_
READOUT - The default
ReadoutStatus::status: nothing was checked on this model.
Functions§
- distribution_
confidence - Documented fastjev certainty proxy, not TypeSafe’s private statistic.
- max_
probability_ confidence - Linear top-probability certainty proxy: zero on a uniform distribution, one when a single candidate holds all the mass.
- request_
batch - Validate a System One request and convert it to one shared state plus the questions asked about it.
- response_
from_ results - Convert scorer results to the documented System One response shape.
- to_
python_ json - Serialize with Python’s
json.dumps(..., ensure_ascii=False)layout.