verdict4s

Overview

A Scala 3 client for typed decision models: TypeSafe AI’s Jev and OpenAI Decisions. A decision model answers typed questions about your program state. It returns choices, scores and calibrated probabilities, not text. The same questions and the same typed answers work with either vendor.

It is cross-built for the JVM and Scala.js from one source tree. The services’ limits are carried by the types, so an invalid question fails at compile time or during validation before anything is sent. It doesn’t wait for a network round trip. The library ships as three modules:

  • verdict4s: a working client in one line, with its own transport.
  • verdict4s-client: for when you already have an http4s Client[F] or want a specific backend.
  • verdict4s-core: the types and codecs only, with no effect system.