User repository on GitHub
Latency-first Rust SDK for TypeSafe System One.
- Forks
- 1
- Last pushed
- Updated Sep 2026
Repo stats from the GitHub API, cached Oct 2026.Homepage
Jev directory
User repository on GitHub
Latency-first Rust SDK for TypeSafe System One.
Repo stats from the GitHub API, cached Oct 2026.Homepage
Rust client for TypeSafe System One. Evaluate a state against named questions (noul, choice, score) and get one typed answer per question. This is a community SDK. It is not an official TypeSafe product. Env vars, defaults, retries, identification headers, and error kinds match the official Python SDK and @typesafe-ai/sdk. MSRV is 1.85 (edition 2024). TLS is rustls by default (native-tls is available). state can be a string, a JSON object, or an array. Keys you pick on the question map come back on answers.
Quoted from the project's README. Read the full README.
use typesafe_rs::{questions, Client, Question};
#[tokio::main]
async fn main() -> Result<(), typesafe_rs::Error> {
let client = Client::from_env()?;
let response = client.system_one("My payouts have been failing.", questions! {
"urgent" => Question::noul("Does this convey urgency?"),
"team" => Question::choice("Which team?").option("billing", "Refunds"),
}).await?;
println!("{:?}", response.noul("urgent"));
Ok(())
}Watch out
Dual-licensed Apache-2.0 or MIT and not an official TypeSafe product. Needs Rust 1.85+, a TYPESAFE_API_KEY, and an async runtime; the default timeout is 10 seconds per attempt including the body.
Short answers drawn from the linked project or page.
Original write-ups on what this entry is for.
Posts from builders shipping with Jev right now.