Skip to content
System One

codeitlikemiley/typesafe-sdk-rust

Rust SDK for the TypeSafe AI API. Types the three answer kinds with accessors that fail loudly on the wrong kind, carries usage and request_id, and offers async and blocking clients.

codeitlikemiley/typesafe-sdk-rust on GitHub

Stars
3
Forks
0
Language
Rust
License
MIT
Last push
17 Sep 2026

Read from GitHub on . Counts change daily.

How it uses Jev

use typesafe_sdk::Question;

#[tokio::main]
async fn main() -> Result<(), typesafe_sdk::Error> {
    let rt = harness::ExampleRuntime::start(fixtures::mixed_primitives()).await?;
    println!("mode={}", harness::ExampleRuntime::mode_label());

    let response = rt
        .client
        .system_one(
            serde_json::json!({"document": "I was charged twice. Please fix this ASAP."}),
            [
                ("billing", Question::noul("Is this ticket about billing?")),
                (
                    "tone",

View in examples/system_one.rs

Open on GitHub

More like this

Use cases this is tagged with