typesafe-ai-rs 0.1.0

Async and blocking Rust clients for the TypeSafe AI System One API
Documentation
1
2
3
4
5
6
7
8
9
10
use typesafe_ai_rs::{blocking::Client, Noul, SystemOneRequest};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let response = Client::new()?.system_one(SystemOneRequest::new(
        "I was charged twice.",
        [("billing", Noul::new("Is this about billing?"))],
    ))?;
    println!("billing: {}", response.nouls()["billing"].noul);
    Ok(())
}