jevbooks

← All projects

typesafe-sdk-swift

marandaneto/typesafe-sdk-swift

Experimental Swift SDK for the TypeSafe AI API.

What it is

An unofficial, experimental Swift-native client for the TypeSafe AI API, using Swift Package Manager, Swift 6 concurrency, and URLSession, for Apple-platform developers who want typed answers.

How it uses Jev

The client calls POST /v1/systemone via systemOne(state:questions:). Jev answers typed questions: choice returns a selected label with confidence and per-label probabilities, noul returns a yes/true probability, and score returns an expected fractional score. Results are read through typed handles or response.value.answers.

Primitives:choicescorenoul

Technique worth stealing

Use compile-time handles (ChoiceQuestion, NoulQuestion, ScoreQuestion) so answers stay strongly typed and mismatches throw instead of force-casting.

Try it

Add the package in Xcode or SwiftPM, pin exact 0.1.0, then call client.systemOne(state:questions:).

View on GitHub

judged by Jevjev-1.13.0

Evidence

Each line is one question put to Jev about the README. ≥ 0.60 reads as yes, ≤ 0.40 as no; in between Jev is not making a call.

  • Jev-centricno0.04
  • Shows a System One patternno0.04
  • Handles uncertaintyno0.02
  • Measuredno0.05
  • Runnableyes0.96
  • Worth recommendingno0.05
  • Model replicano0.04
  • Problem scopescore on a 0–2 scale1.00
  • About Jevyes0.92

Signals by Jev jev-1.13.0, card written by DeepSeek V4.1 Flash from the README on 20 Sept 2026.