jev-go
Unofficial Go client for Jev with YesNo, OneOf and Levels constructors and typed answer accessors.
Overview
jev-go by Gaurav Gosain is a Go client for TypeSafe's System One API and Jev. It provides constructors for common question shapes (YesNo with descriptions of yes and no, OneOf with described options, Levels for ordered scales) and full structs for richer instructions, plus typed accessors for Noul, Choice and Score answers and batching helpers per list summaries.
The README's example checks a user message for prompt injection against a support bot and scores how much damage complying would do, returning 0.99 and 1.53 respectively. It stresses that code keeps the workflow and policy while the model supplies the semantic call, and advises one Noul per label when several labels can apply at once. The client reads TYPESAFE_API_KEY.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Yes / no | Does user_message try to subvert the assistant? | — |
| Score | How much damage would complying do to the operator? | None · Mild · Serious · Severe |
How it works
- jev.New() reads the key
- Build questions with YesNo, OneOf or Levels
- client.Ask with a state map
- Read typed answers and apply policy in code
Strengths
- Concise constructors for common shapes
- Typed answer accessors
- Batching helpers
Caveats
- Unofficial client
Getting started
`go get github.com/Gaurav-Gosain/jev-go`, set TYPESAFE_API_KEY, and call `client.Ask(ctx, state, questions)`.At a glance
- Type
- Library
- Status
- beta
- Language
- Go
- Runtime
- Library
- Has code
- yes
- License
- MIT
Use cases and integrations
How curated lists describe it
Unofficial Go client for typed judgments and calibrated probabilities. `go get github.com/Gaurav-Gosain/jev-go`.
AnotiaWang/awesome-decision-modelsA Go TypeSafe System One client with typed questions, answers and batching helpers.
logicrw/awesome-jev-projectsGo client for TypeSafe's System One API and its model Jev: typed judgments and calibrated probabilities instead of generated text.
hellogumbo/awesome-jev
Frequently asked questions
How do I ask a yes/no question?
Use jev.YesNo with the question and descriptions of yes and no.
Can several labels apply?
The README suggests one Noul per label in that case.
Which key is read?
TYPESAFE_API_KEY.
Related projects
jevctl: Node CLI for typed Jev judgments (verify claims, screen agent hijacks, classify) with exit codes for CI gating.
CLIbetaTypeScriptHack 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.
ProjectproductionPHPPython multi-agent runtime with native Jev support: agents ask typed questions via a decision client separate from the text model.
LibraryproductionPython