Skip to content

Jev directory

Ruby Decision Model

A Ruby client for Noul, Choice, and Score decision models, reaching OpenRouter by default or TypeSafe's native API, with no runtime dependencies beyond the standard library.
Stars
58
Language
Ruby
License
MIT
Reading time
3 min
Published by
Community
Author
obie
Last verified
Sep 2026

Ruby client for decision models such as Typesafe Jev

Forks
5
Last pushed
Updated Oct 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

The decision-model interface for Ruby. Decision models answer typed questions about a state with calibrated probabilities instead of generating text. This gem talks to them through one Client with a provider behind it. OpenRouter is the default. Typesafe (Jev), OpenAI (gpt-6-luna), Cloudflare (Clef), Perplexity (pplx-decider), and Databricks (aidecide) each have a native provider, and any server that speaks the System One API (Ollama, strands-decider, the autojev server) works through :systemone. Your questions…

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

Highlights

  • One Client with a provider behind it: OpenRouter by default (typesafe/jev-1.13) and TypeSafe's native API as the second door (jev-latest).
  • Client.new reads the environment: TYPESAFE_API_KEY selects Typesafe, otherwise OPENROUTER_API_KEY; with neither it raises ConfigurationError.
  • Questions.noul, Questions.choice with up to 255 options, and Questions.score with 2 to 10 levels; answers come back typed with probabilities.
  • RetryPolicy follows the official SDKs: max_retries 2, 0.5 s initial backoff that doubles, a 5 s ceiling, and 25% jitter.
  • Typesafe responses expose the x-typesafe-request-id header as response.request_id; status 0.1.0, so the API may change.

Watch out

MIT-licensed and stdlib-only, but version 0.1.0 with an API that may change; needs Ruby and either a TYPESAFE_API_KEY or an OPENROUTER_API_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