Skip to main content

typesafe_rs/types/
mod.rs

1//! Wire types for the System One API.
2//!
3//! [`Question`] is what you send; [`Answer`] / [`SystemOneResponse`] is what you
4//! get back. [`Entry`] is TypeSafe's `string | object | array | null` slot used
5//! for instructions and criteria.
6
7mod entry;
8mod models;
9mod question;
10mod request;
11mod response;
12
13pub use entry::Entry;
14pub use models::{ListModelsResponse, ModelCard};
15pub use question::{MAX_CHOICE_OPTIONS, NoulCriteria, Question, Questions, validate_questions};
16pub use request::SystemOneRequest;
17pub use response::{
18    Answer, ChoiceView, NoulView, ResponseMeta, ScoreView, SystemOneResponse, Usage,
19};