Skip to main content

Crate cerno_types

Crate cerno_types 

Source
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.
ChoiceSpec
ErrorResponse
LevelProbability
ModelInfo
ModelsResponse
OptionProbability
Question
One question, identified so its answer can be found in the response map. It names exactly one primitive.
ScoreSpec
SystemOneRequest
A shared state plus the questions to ask about it.
SystemOneResponse
Timing
Usage

Enums§

Answer
A typed answer.
ErrorCode
Machine-readable failure reasons. Callers branch on these, not on message.
LevelSpec
A rubric given either as a plain count or as the text of each level.
QuestionKind
The three primitives. Externally tagged, so the wire form is {"id": .., "noul": ..}.

Constants§

MAX_LEVELS
Most levels a ScoreSpec rubric 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 ScoreSpec rubric may have. One level is not a judgement.