Skip to main content

Crate forge_system_one

Crate forge_system_one 

Source
Expand description

System One decision-model client: typed questions in, probabilities out. One endpoint and one model per [systemone] config section.

Re-exports§

pub use client::SystemOneClient;
pub use config::DEFAULT_TIMEOUT_MS;
pub use config::SystemOneConfig;
pub use config::SystemOneSection;
pub use config::systemone_url;
pub use error::SystemOneError;
pub use wire::Answer;
pub use wire::AskOutcome;
pub use wire::NoulCriteria;
pub use wire::Question;
pub use wire::Usage;
pub use wire::validate_answer;

Modules§

client
The HTTP client: one POST per question, everything failed mapped to a typed error, no retries - the caller decides what a failure means.
config
error
wire
The System One wire shapes: one typed question out, one typed answer back, and the check an answer must survive before it is trusted.