Give your code
a better gut instinct.
Which team should get this ticket? Is this draft clear? Jev turns questions like these into decisions your app can use. Learn how it differs from an LLM, when it helps, and how to build with it.
Write an answer. Or make a decision.
Imagine a customer says, “Checkout failed twice.” You might need a helpful reply. Or you might just need to know which team should receive the ticket. Those are different jobs.

TypeSafe says Jev evaluates questions in parallel instead of generating an answer token by token. This can make frequent, narrow decisions practical inside an app. Actual speed, cost, and accuracy still depend on your workload.
Does “typed” mean it cannot be wrong?
No. A Choice stays within the options you provided, but it can still choose the wrong one. If billing is the wrong team, returning a valid billing value does not fix that mistake. Test decisions against examples with known answers.
Situation in. Decision out.
The state is simply the information the model reads. A question says what to judge. Your code decides what happens with the answer.
The text or structured data Jev should evaluate.
Small, typed judgments evaluated independently.
Values, probabilities, and confidence—not prose to parse.
Routes, ranks, asks for review, or safely does nothing.
Ask for exactly what you need.
Choose a category, rate something on a scale, or check a statement. Ask independent questions about the same situation in one call, then combine the answers in code.
See the uncertainty. Use it.
A label tells you what won. A probability distribution tells you how the model weighed the alternatives. Try a less specific message and see why that extra information matters.
1.4 out of what?
A three-level rubric uses positions 0, 1, and 2. Suppose a bug has a 60% probability of level 1 and 40% of level 2. Its score is 1.4: a position between two descriptions, not “70% correct.”
How Score is calculated- 0Cosmetic
Looks wrong; still works.
- 1Degraded
Broken, but a workaround exists.
- 2Blocked
Cannot proceed; no workaround.
For “Does this message request a refund?”, 0.9 means the model assigns a 90% probability to yes. It does not mean the customer wants 90% of their money back. Use Score when you need a degree or level.
How to read a NoulSmall decisions. Repeated everywhere.
Jev is most interesting when the answers are bounded, the context is available, and your app needs the same kind of judgment over and over.
Jev selects. An LLM develops. Code acts.
For a support assistant, Jev could pick a team and flag urgency. An LLM could then draft a reply using the right context. Your application decides whether a person must approve it.
- JevRoute and prioritize
- LLMDraft the response
- Your codeValidate and request approval
When to reach for something else
- Need original text or code? Use a generative model.
- Need a long, multi-step investigation? Use a reasoning workflow with the right tools and evidence.
- Have an exact rule or calculation? Write ordinary code. A model adds uncertainty.
- Missing the facts? Retrieve context first. A decision model cannot make absent evidence appear.
Collect examples with known answers. Compare Jev, an LLM, and simple rules on the same task. Check wrong decisions, review volume, end-to-end latency, and total cost. Choose the approach that works on your data.
Check your understanding: “Summarize this ticket and pick a team.”
Split the job. An LLM can write the summary. A Jev Choice can select the team from defined options. If both evaluate the original ticket, they can run independently; if the routing uses the summary, it must wait for it.
This guide combines official documentation with illustrative examples. TypeSafe’s performance claims come from its own evaluations; they are not universal guarantees.
From zero to the first decision.
Three things to get right before the first call. They take a few minutes and save a lot of debugging.
Get a key from the TypeSafe console and save it as TYPESAFE_API_KEY.
Call Jev from a server route or backend. Never ship your key in a browser bundle.
Test real examples, inspect probabilities, then add explicit fallback behavior.
Choose one. Copy. Build.
Each prompt gives a coding agent the product brief, safety boundaries, and definition of done. Paste it from the root of your project.
Start here
Learn the primitives, then add a confidence-aware fallback.
Build a tool
Turn real inputs into a transparent queue, checklist, or report.
Agent loops
Give an agent a bounded choice while deterministic code stays in charge.
Play & explore
Make the model visible through simulations, games, and evaluation.
Model judgment. Code policy.
Split broad evaluations into focused questions.
Define what your app does at low confidence.
Thresholds and side effects belong in deterministic logic.



