Skip to content

TypeSafe SDK Ex

An unofficial Elixir SDK for TypeSafe's System One endpoint, built on Req and Finch, with per-call retry policies, a shared connection pool and status-mapped errors.

Stars
1
Language
Elixir
Published by
Community
Author
vinnie357
Last verified
Oct 2026

About this project

typesafeai sdk in elixir using req based on: Set TYPESAFEAPIKEY in your environment, then create and use the client:

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

Highlights

  • It mirrors the JavaScript SDK's surface: a new/1 client, system_one/3, the noul, choice and score helpers, and list_models, all keyed off TYPESAFE_API_KEY.
  • Ten error structs are mapped from HTTP status, including one carrying retry_after_ms for rate limits, plus separate structs for connection and timeout failures.
  • Retries default to two attempts on 408, 429, 5xx and connection errors with jittered backoff, overridable per call without mutating the client.
  • Requests share a Finch pool and hold one connection for the whole round trip, with pool sizing and pool timeout exposed as options.

Watch out

This is an unofficial port of the JS SDK, not TypeSafe's own Elixir client, so parity with the upstream surface is maintained by whoever maintains this repo. Timeout handling is deliberately conservative: a POST to the systemone endpoint that timed out may already have been processed and billed, and the API has no idempotency key, so timeouts are not retried unless you opt in. The timeout value applies per attempt and maps to Req's receive_timeout, which bounds each socket read rather than the call, so a slow-trickling response can outlast it; connecting is bounded separately by Finch's own default. Pool exhaustion returns a connection error with reason pool_timeout and is never retried under any policy. Raising the Retry-After ceiling makes a single call sleep that long before retrying. The error structs deliberately share no base struct, so pattern matching is the only way to catch them broadly. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

0GitHub stars
Elixir client for the TypeSafe AI System One API: supervised Mint HTTP/1 and HTTP/2 connections, bounded concurrency, request deadlines, retries and telemetry, with typed Choice, Score and Noul answers.
Jev Repos & SDKs#community#jevbest#catalog-import
2GitHub stars
An unofficial Elixir client for TypeSafe's System One API. Noul, Choice and Score questions go out in one request and come back as structs with probabilities, and thresholds and policy stay in your code.
Jev Repos & SDKs#community#jevbest#catalog-import
0GitHub stars
Unofficial typed Elixir client for the TypeSafe System One API: typed question structs in, typed answer structs out, atom-keyed answers, concurrent fan-out over many states and offline test stubs.
Jev Repos & SDKs#community#jevbest#catalog-import
45GitHub stars
Go SDK plus a pipeline-friendly CLI for typed decisions, covering single questions, batched question maps, retries, and line-oriented filtering over stdin.
Jev Repos & SDKs#community#jevbest#catalog-import
16GitHub stars
Swift library and CLI for asking Jev typed Choice, Noul, and Score questions from Apple platforms, with answers returned alongside calibrated probabilities in one parallel request.
Jev Repos & SDKs#community#jevbest#catalog-import
9GitHub stars
Go SDK for the TypeSafe API that asks typed Noul, Choice, and Score questions about a state and returns probability distributions with confidence and typed accessors.
Jev Repos & SDKs#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

Closed weights have not stopped the ecosystem from rebuilding the shape in the open. API-compatible servers, retrained heads on small models, and inference-time tricks that skip generation entirely.
Jev Repos & SDKs#open-models#research#local
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai