Expand description
Wire types for the cerno HTTP API.
This crate is deliberately dependency-light: it carries serde always and utoipa only
behind the schema feature. That is what lets cerno-sdk share the exact types the server
serialises without pulling the engine or the OpenAPI machinery along with them.
Structs§
- Calibration
- Temperature scaling applied to label logits before the softmax.
- Choice
Spec - Error
Response - Level
Probability - Model
Info - Models
Response - Option
Probability - Question
- One question, identified so its answer can be found in the response map. It names exactly one primitive.
- Score
Spec - System
OneRequest - A shared state plus the questions to ask about it.
- System
OneResponse - Timing
- Usage
Enums§
- Answer
- A typed answer.
- Error
Code - Machine-readable failure reasons. Callers branch on these, not on
message. - Level
Spec - A rubric given either as a plain count or as the text of each level.
- Question
Kind - The three primitives. Externally tagged, so the wire form is
{"id": .., "noul": ..}.
Constants§
- MAX_
LEVELS - Most levels a
ScoreSpecrubric may have, matching JEV’s rubric range of 2..=10. - MAX_
OPTIONS - Maximum number of answer options in a single question.
- MAX_
QUESTIONS - Most questions in a single request.
- MIN_
LEVELS - Fewest levels a
ScoreSpecrubric may have. One level is not a judgement.