Expand description
Wire types for TypeSafe’s Jev “System One” REST API.
The API answers a map of named questions about one opaque state in
a single request — choice (pick one of a labelled set), score (rate
against an ordered scale) and noul (a yes/no probability) all share the
one /v1/systemone endpoint, distinguished by an internally-tagged
type field. See docs/jev.md for the operator-facing guide.
Every map here is a BTreeMap, never a HashMap: neither indexmap
nor serde_json’s preserve_order feature is a dependency, so a
HashMap would serialise in random order on every run.
Structs§
- Noul
Criteria - Optional descriptions of the two poles of a
Question::Noulquestion. - Question
Limits - The upper size limits a model accepts, per question type.
- System
OneRequest - A
POST /v1/systemonerequest body. - System
OneResponse - A
POST /v1/systemoneresponse body. - Usage
- Token accounting for one
SystemOneRequest/SystemOneResponsepair.
Enums§
Constants§
- DEFAULT_
MODEL - Default model identifier, used when no
--jev-model/TYPESAFE_MODELoverride is configured. - MAX_
CHOICE_ OPTIONS - Most options a
Question::Choicemay offer onjev-1.13. - MAX_
SCORE_ LEVELS - Most levels a
Question::Scorescale may have onjev-1.13. - MIN_
CHOICE_ OPTIONS - Minimum number of options a
Question::Choicemust offer — picking “one of one” is not a judgment. - MIN_
SCORE_ LEVELS - Minimum number of levels a
Question::Scorescale must have.