Skip to content

Jev directory

Zio TypeSafe AI

A Scala 3 and ZIO HTTP client for TypeSafe's Jev System One API: ask typed Noul, Choice, and Score questions in one round-trip via a NamedTuple and get answers shaped exactly like the questions.
Stars
5
Language
Scala
License
APACHE-2.0
Reading time
4 min
Published by
Community
Author
jamesward
Last verified
Sep 2026

About this project

A Scala 3 / ZIO library for TypeSafe AI's Jev / System One API — a "System One model" that answers typed, atomic questions about a piece of state instead of generating text. Typed end-to-end. No raw JSON, no stringly-typed answer lookups. Ask several questions in one round-trip via a NamedTuple; the typed answer comes back keyed and shaped exactly like the questions you asked.

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

Highlights

  • Questions bundled in a NamedTuple share keys with the typed result, so asking for isUrgent returns a Probability.
  • ChoiceCriteria and ScoreCriteria validate at construction: 1-255 options and 2-10 levels, and every noul or probability is a Double within [0.0, 1.0].
  • Reads the same environment variables as the official SDKs: TYPESAFE_API_KEY, plus TYPESAFE_DEFAULT_MODEL defaulting to jev-latest.
  • The .run variant returns a Result carrying the typed answers, responding model, and token usage; .answers returns just the answers.
  • Built on ZIO HTTP's Client, with retries for 429, ServiceOverloaded, and InternalServer errors per TypeSafe's rate-limit guidance.

Watch out

Apache-2.0 licensed. A community client, not an official TypeSafe SDK; needs a TypeSafe API key, Scala 3, and ZIO HTTP, and Jev caps choices at 255 options and scores at 10 levels.

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