jev
Unofficial Go client for Jev that returns answers as your own Go types, so the compiler checks how you branch on them.
Overview
jev by anilsenay is an unofficial Go client for TypeSafe's System One API. It carries Jev's guarantee that answers stay within the defined set into Go's type system: a Choice over your Intent type returns a jev.ChoiceAnswer[Intent], so a switch on it is type-checked, and a question that could not be answered is an error before the request is sent.
Questions are declared once with constructors: Noul with optional true and false criteria, Choice with options and descriptions (or OneOf), and Score over ordered levels that can land between them. Answers include probabilities and confidence, and helpers such as Sure(0.9) make thresholded branching explicit, as in the README example that auto-refunds only when sure and escalates otherwise. It reads TYPESAFE_API_KEY, has CI and Go package docs, and is MIT licensed.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | What does the customer want? | refund · shipping · other |
| Yes / no | User-defined two-outcome question | true · false |
| Score | User-defined ordered score | — |
How it works
- Declare typed questions with jev.Choice, jev.Noul or jev.Score
- Create a client from TYPESAFE_API_KEY
- Call jev.Ask with state and questions
- Branch on typed answers and Sure(threshold)
Strengths
- Compile-time typed answers
- Invalid questions fail before sending
- Explicit confidence helpers for escalation
Caveats
- Unofficial client
- Requires a TypeSafe early-access key
Getting started
`go get github.com/anilsenay/jev`, set TYPESAFE_API_KEY, then `jev.Ask(ctx, client, state, question)`.At a glance
- Type
- Library
- Status
- beta
- Language
- Go
- Runtime
- library
- Has code
- yes
- Has tests
- yes
- License
- MIT
Use cases and integrations
How curated lists describe it
Unofficial Go client for TypeSafe's System One API and its model, Jev.
logicrw/awesome-jev-projectsUnofficial Go client for TypeSafe's System One API and its model, Jev.
hellogumbo/awesome-jev
Frequently asked questions
What makes this client different?
Answers are returned as your own Go types, so branching is checked by the compiler.
How do I handle uncertainty?
Use helpers like ans.Sure(0.9) and escalate when not sure.
Is it official?
No, it is an unofficial client.
Related projects
Hack Club's lightweight LLM proxy, listed for adding a Jev forwarding endpoint behind its auth, limits and usage logging.
MCP serverproductionTypeScriptAx, a DSPy-style multi-language LLM framework, listed with a native TypeSafe provider for Boolean, Choice, Score and raw Jev questions.
PluginproductionTypeScriptEffect TypeScript library whose @effect/ai-typesafe package maps classify, probability and rating operations to Jev questions.
ProjectproductionTypeScriptPHP monorepo whose Polyglot module adds a TypeSafe driver for typed Noul, Choice and Score decisions alongside LLM inference.
ProjectproductionPHPGo MCP server giving any client typed Jev decisions via OpenRouter or TypeSafe, with validated answers and no paid retries.
MCP serverproductionGoSimon Willison's LLM plugin that adds Jev as a model for yes/no, choice and score questions from the command line.
PluginproductionPython