Skip to content

Jev directory

TypeSafe AI Rust SDK (community)

A community Rust port of the official Python SDK with the same primitives, wire format, retries, and error semantics, plus derive macros for typed questions and answers.
Stars
0
Language
Rust
License
MIT
Reading time
3 min
Published by
Community
Author
community-ports
Last verified
Sep 2026

About this project

A community-built Rust SDK for the TypeSafe AI API. It is a port of the official Python SDK with the same primitives, wire format, retry behavior, and error semantics, in idiomatic Rust. TypeSafe's System One models (Jev is the flagship) return fast, typed judgments (probabilities, selections, and scores) that your code can consume directly instead of generated text. Learn what TypeSafe is and how to design questions in the TypeSafe docs.

Quoted from the project's README. Read the full README.

Highlights

  • Derive macros turn Rust enums and structs into question sets: ChoiceLabels, ScoreLevels, Questions, Route, and Composite.
  • Adds typed function calling, weighted composite scoring retunable without new requests, and helpers that turn probabilities into decisions.
  • Publishes two crates sharing one version: typesafeai-sdk-community and the proc-macro crate typesafeai-sdk-community-macros.
  • A mock transport with generated fixtures keeps tests offline; live tests self-skip without TYPESAFE_API_KEY.
  • Minimum supported Rust version is 1.88, and the port mirrors the official Python SDK's retry and error semantics.

Quickstart

rust
use typesafeai_sdk_community::{Noul, Score, TypeSafeClient, json};

let client = TypeSafeClient::new()?;
let response = client
    .system_one(json!({"document": "I was charged twice. Please help."}))
    .question("billing", Noul::new("Is this message about billing?"))
    .question("urgency", Score::new("How urgent is this?", ["Can wait", "Today"]))
    .send()
    .await?;

Watch out

MIT-licensed. An independent community port not maintained by TypeSafe; needs Rust 1.88 or newer and a TypeSafe API key in TYPESAFE_API_KEY.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: A chat bot with no LLM

Facebook: Intake Router keeps diagnosis out of the answer space at the front desk.

FacebookClinicnotes

X: OpenRouter Decision Model Rankings

X: herdr + jev, an agent router

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai