Jev Tutorial: Make Your First Decision Call on Linkora
Step-by-step Jev tutorial. Send a typed decision request to the TypeSafe model on Linkora with curl, TypeScript, or Python and read the probabilities it returns
Jev Tutorial
This tutorial takes you from zero to a first typed decision from Jev in three steps. Jev is available as typesafe/jev-1.13 on Linkora, and all you need is an Linkora API key.
If you want a few concepts before diving into code, start with the Jev documentation hub. If you already know Jev and want the full request schema, go to the Decisions API reference.
What Jev returns
Jev is a System One decision model from TypeSafe. Instead of generating text, Jev answers typed questions about the state you send it:
- Choice picks one option from a set you define and returns a probability for each option.
- Noul answers a yes or no question and returns the probability of yes.
- Score places the input on an ordered scale you define and returns a probability-weighted position.
Because the answer is a typed value with an associated probability, your implementation can branch on it directly. There is no free-form text to parse.
Step 1: Get an Linkora API key
Create a key at link-ora.net/settings/keys, then export it:
export LINKORA_API_KEY=sk-or-...Step 2: Make your first decision call
The example below routes a support ticket. It asks Jev three independent questions in one request, whether the ticket is a bug (Noul), which team owns it (Choice), and how urgent it is (Score).
curl https://link-ora.net/api/alpha/decisions \
-H "Authorization: Bearer $LINKORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "typesafe/jev-1.13",
"state": {
"customer_tier": "enterprise",
"ticket": "My checkout page shows a blank screen after I click Pay. I have tried two browsers."
},
"questions": {
"is_bug": {
"type": "noul",
"instructions": "Is the customer reporting a software defect?",
"criteria": {
"true": "The customer describes broken or unexpected product behavior.",
"false": "The customer is asking a question or requesting a feature."
}
},
"team": {
"type": "choice",
"instructions": "Which team should own this ticket?",
"criteria": {
"payments": "Checkout, billing, or payment processing issues.",
"frontend": "Rendering, layout, or browser compatibility issues.",
"account": "Login, permissions, or profile issues."
}
},
"urgency": {
"type": "score",
"instructions": "How urgent is this ticket?",
"criteria": [
"Can wait for the next release",
"Should be fixed this week",
"Blocking revenue right now"
]
}
}
}'Step 3: Read the answers
The response contains one typed answer per question, plus usage. This is an actual response to the request above, captured from the live API. Your probabilities will differ slightly from run to run, and the field shapes are documented in the Decisions API reference:
{
"id": "gen-dec-1790015143-AIaTutprXsJ5EwohRSjb",
"model": "typesafe/jev-1.13-20260917",
"provider": "TypeSafe",
"answers": {
"is_bug": { "type": "noul", "noul": 0.96 },
"team": {
"type": "choice",
"choice": "payments",
"confidence": 0.67,
"probabilities": { "payments": 0.78, "frontend": 0.22, "account": 0 }
},
"urgency": {
"type": "score",
"score": 1.99,
"confidence": 0.99,
"probabilities": { "0": 0, "1": 0, "2": 1 },
"legend": {
"0": "Can wait for the next release",
"1": "Should be fixed this week",
"2": "Blocking revenue right now"
}
}
},
"usage": { "input_tokens": 476, "output_tokens": 70, "cost": 0.000019992 }
}The model field in the response names the dated snapshot that served your request. Sending typesafe/jev-1.13 resolves to the current 1.13 release, so a dated suffix here is expected.
How to read each field:
is_bug.noulis the probability that the answer is yes, a number between0and1. A value of0.96means Jev is pretty sure this is a defect. Values near0.5mean the answer is about equally likely to be yes or no. It doesn't mean the bug is "medium."team.choiceis the selected option.team.probabilitiescompares the different options you listed as alternatives.team.confidencesummarizes how concentrated that distribution is.urgency.scoreis the probability-weighted position on your ordered scale, with index0corresponding to the first criterion you listed. A score of1.99sits almost exactly on "Blocking revenue right now."
You'll need to branch on these values in your code. For example, you might auto-route tickets where team.confidence is above a threshold tuned on labeled tickets, and send the rest to a human queue. Confidence describes the distribution of the alternatives, not whether the workflow is safe to run, so pick thresholds from the cost of each kind of mistake rather than from a round number.
Use the TypeSafe SDK instead
If you're already using the TypeSafe JavaScript or Python SDK, you'll just need to point it at Linkora and keep your existing code. The Jev SDK guide covers setting the base URL, authentication, and the expected response shape.
import { TypeSafeClient } from '@typesafe-ai/sdk';
const client = new TypeSafeClient({
apiKey: process.env.LINKORA_API_KEY,
baseURL: 'https://link-ora.net/api',
});You can also call the Decisions API through the Linkora TypeScript, Python, or Go SDK.
Frequently asked questions
How do I get access to Jev? Simply create an Linkora API key and send a request to the Decisions API with model set to typesafe/jev-1.13. You don't need a separate signup, a waitlist, or a TypeSafe account.
What does Jev cost? Jev is billed based on the number of input tokens, and output tokens are free. On the Jev model page, you can find the current price and the context length. Finally, each response has a usage.cost field that reports what that call cost you in USD.
Is Jev an LLM? No, Jev is a System One decision model which returns answers that are typed with probabilities rather than generated text, and does not return any reasoning trace or explanation for the answer.
Can I ask more than one question per request? Yes, put every independent question about the same state in one request. All questions in the request are answered in parallel and cannot see each other's answers.
Can I use ~typesafe/jev-latest? Yes. The current Jev release is tracked under the ~typesafe/jev-latest alias. Pin typesafe/jev-1.13 when you need thresholds tuned against one specific version to stay stable.
Next steps
- Jev documentation hub for concepts, every Jev page on Linkora, and links to the TypeSafe docs
- Gate Agent Tool Calls with Jev to approve, block, or escalate agent tool calls
- Cut LLM Cost with a Jev-Verified Cascade to verify cheap-model answers before escalating
- Classify and Tag Text at Scale with Jev to run the Choice and Noul questions from this tutorial over a whole batch and pick thresholds from labeled data
- Auto-Approve Coding Agent Permission Prompts with Jev to put a Noul threshold in front of Claude Code, Codex, Cursor, or OpenCode permission prompts
- Jev Lab for interactive demos of triage, extraction, and oversight
- TypeSafe primitives and confidence docs for writing better questions and choosing thresholds
- Other decision models on Linkora from OpenAI, Microsoft, Perplexity, Cloudflare, and others take the same Decisions API request: change
modeland re-check your thresholds on a labeled sample
