Skip to content

Jev directory

TypeSafe Java Client

A Java 21 client and CLI for the TypeSafe API: send state with Noul, Choice, and Score questions, get typed answers, and optionally run local Clef and Laya models via ONNX Runtime with no API key.
Stars
0
Language
Java
License
MIT
Reading time
2 min
Published by
Community
Author
dfa1
Last verified
Oct 2026

Highlights

  • Send a state plus Noul, Choice, and Score questions and read back typed answers, with the token read from ~/.typesafe.apikey or an environment variable.
  • A typed-record mapping module lets a Java record annotated with @Noul decode a typed result, skipping maps and casts.
  • The CLI ships as a self-contained uber-jar whose --min thresholds make it exit 1 on failure, so it doubles as a CI pass/fail gate.
  • Published on Maven Central as io.github.dfa1.typesafe-java, with core, client mapping, and cli modules.
  • Local models run through ONNX Runtime; an Apple M5 table compares Laya fp32 and others against jev-1.13.0 on 104 cached requests.

Quickstart

bash
java -jar typesafe-java-cli-*-all.jar \
  --state "My card was charged twice." \
  --noul "urgent=Is this urgent?" --min "urgent=0.5" || echo "not urgent enough"

Watch out

Copy reviewed against the repo README on 2026-10-15; the local-model table was truncated in the fetched excerpt, so the full agreement figures were not reviewed. Local-model agreement numbers are the author's measurements, not vendor benchmarks, and API usage still needs a TypeSafe key.

Questions about this entry

Short answers drawn from the linked project or page.

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