TypeSafe.Jev
.NET library that turns C# enums into Jev Choice questions and returns real enum values with probabilities and confidence.
Overview
TypeSafe.Jev is a .NET package for asking Jev typed questions and getting answers a switch statement can use. You declare an enum, optionally with descriptions per member, and the enum becomes the Choice options; the answer comes back as that enum, so the compiler can flag a missing branch when you add a member. Noul and Score questions are also supported, with confidence treated as a first-class number for auto-approval thresholds.
It targets net8.0, net9.0 and net10.0 and has a single dependency, enforced by CI. It is trim- and Native AOT-safe, with a native binary built and run on every build. Retries match the official SDKs (408, 429, 5xx, jitter, Retry-After, per-attempt timeouts and an overall budget) without Polly, and logging and OpenTelemetry are built in. Examples and tests run offline without a key. Version 1.0.0 is on NuGet.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | Which category does this message belong to? | Billing · TechnicalIssue · FeatureRequest · Other |
How it works
- Declare an enum with descriptions.
- Call SystemOneAsync with state and questions.
- Read res.Choice(...).As<YourEnum>() and its confidence.
- Auto-approve above threshold; route the rest to a human.
Strengths
- Answers as real enums with compile-time exhaustiveness.
- Native AOT and trim safe.
- Single dependency; built-in logging and OpenTelemetry.
- Offline-testable.
Caveats
- Requires C# 12+ and a TypeSafe key.
Getting started
dotnet add package TypeSafe.JevAt a glance
- Type
- Library
- Status
- production
- Language
- C#
- Runtime
- .NET library
- Has code
- yes
- Has tests
- yes
Use cases and integrations
How curated lists describe it
Typed AI decisions for .NET: ask Jev (TypeSafe AI System One) yes/no, choice and score questions and get a C# enum with calibrated probabilities back.
hellogumbo/awesome-jev
Frequently asked questions
What is special about it?
Your C# enum is the question, and the answer comes back as that enum.
Does it work with Native AOT?
Yes, it is trim- and AOT-safe, verified on every build.
Which frameworks are supported?
net8.0, net9.0 and net10.0.
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