Skip to content

Architecture and migrationGuide

Jev use cases: where typed AI decisions fit in a company

Most AI work inside a company is not writing. It is deciding: which queue, which policy, which model, which passage. These are the places TypeSafe's Jev fits, how each request is shaped, and where a person should stay in the loop.

By INFRO Editorial

Published

8 min read

A network of amber glass nodes on a dark ground, with lines branching from a central node toward several destinations

In short

Jev fits high-volume decisions whose answer is a label, a yes/no or a rubric level: support triage, moderation, LLM guardrails, model routing, RAG passage selection, lead and claims triage, compliance checklists and feature extraction for classical models. Each follows one shape — code builds a filtered state, one request asks every atomic question, and confidence thresholds decide whether to act, review or escalate.

Key takeaways

  • The use cases share one shape: code filters the state, one request asks every atomic question, and thresholds in code decide what happens.
  • TypeSafe's own documentation lists support, moderation, guardrails, model routing, search and RAG, recruiting, leads, claims, financial crime, compliance and catalog work as fits.
  • Confidence is the second output that matters: act above a threshold, review or escalate below it, with stricter thresholds where a mistake costs more.
  • Start with a decision that is high-volume, has a closed answer set and has past outcomes to test against.
  • Decisions that affect people — hiring, claims, lending — keep a person on the uncertain cases, and some are regulated.

Ask where AI runs inside a company and the first answers are about writing: drafts, summaries, chat. Look at the request logs and a different picture appears. A large share of calls ask a model to decide something about a piece of content — which team, which policy, how urgent, which passage, which model — and then parse the answer back into a value. That is the work TypeSafe built Jev for: typed questions in, probabilities out, no text to parse1.

This guide walks through the use cases TypeSafe documents2, with a request design for each, and the rules that decide whether a given decision is a good first candidate. If Jev is new to you, the explainer covers the API and the three question types: noul (yes/no), choice and score.

The shape every use case shares

Every design below has the same four steps.

ticket, message, listing, claim

An event arrives

Your system already receives it; nothing about intake changes.

filter first

Code builds the state

Unrelated content costs accuracy, so retrieval and trimming happen before the call.

POST /v1/systemone

One request, several questions

Each question is atomic: one property, one rubric, one choice.

your policy

Thresholds decide

Act, send to review or escalate, with stricter thresholds where a mistake costs more.
The shape of a Jev integration: filter in code, ask every question in one request, decide in code.

Two of the steps carry most of the quality. Filtering the state matters because Jev 1.13's accuracy falls as unrelated content grows, so retrieval and trimming belong before the call3. Deciding in code matters because the answer and its confidence are two separate signals: the answer says what, the confidence says whether to act. TypeSafe's guidance is to set thresholds per decision, scaled to the cost of being wrong4.

Illustrative designsStateQuestionsWhat code does with the answers
Support triageTicket text, plan, product areachoice team; noul urgent; noul refund; score frustrationQueue, priority, refund workflow
ModerationPost plus thread contextnoul per policy; score severityAllow, warn, review or remove
Model routingThe user's promptchoice tier; noul needs toolsPick the route or model for the LLM call
RAG contextQuery plus one candidate passagescore relevance; noul answers the questionKeep the top passages, drop the rest
Lead routingInbound form, company profilescore fit; noul buying intent; choice segmentAssign owner, sequence, priority
Claims triageFirst notice of loss, adjuster notesscore complexity; noul missing info; noul fraud indicatorStraight-through, specialist or investigator
Contract reviewOne clause or sectionnoul per required term; choice clause typeChecklist with gaps for counsel
Illustrative request designs for seven use cases. Each row is one request: the state, its questions and what code does with the answers.

Customer support triage

Support is the use case TypeSafe's own examples start from: classify each ticket by issue and product area, detect urgency, frustration, churn risk and refund requests, and route to the right team, queue or automated workflow2. A single request carries all of it — a Choice for the team, Nouls for urgency and refund, a Score for frustration — and one answer set drives the queue, the priority and whether the refund workflow opens.

TypeSafe's intent-routing pattern goes a step further: one intent routes to deterministic code with no LLM at all, two go to different specialist LLMs, and a complexity score decides between an LLM and a person5. The expensive handlers only run for the requests that need them. The same answers also check outgoing replies: TypeSafe lists verifying support responses against policy and against the customer's request as a use2.

Moderation and trust and safety

Moderation is a set of policy questions about one post. TypeSafe describes applying company-specific criteria, detecting toxicity, harassment, spam, fraud, unsafe advice, personal-data exposure and opt-out requests, and combining severity and confidence to allow, warn, review or block2. The design is one Noul per policy plus a severity Score, so adding a policy is adding a question rather than retraining a classifier.

Two of Jev 1.13's documented weak spots apply directly. It reads literally, so each policy needs its boundary cases written into the criteria, and adversarial text written to argue for its own classification can move the answer, so moderation is the place to test with hostile inputs before rollout3.

LLM guardrails and output checks

The same pattern sits around LLM calls. TypeSafe documents checks on every LLM input, output and tool call: jailbreak and injection detection, policy violations, sensitive-data exposure, tool-call errors and response-quality failures2. Its guardrails cookbook screens each message with one request carrying a battery of Noul questions and a severity Score, then applies an action threshold and a lower review threshold in code6. The guardrails and routing guide covers that design in detail.

Model routing: choosing which LLM answers

Before an LLM call, a Choice over model tiers and a few Nouls (does this need tools, is this risky) decide where the prompt goes. TypeSafe lists building a custom router, classifying intent and domain, estimating difficulty and risk, and escalating requests that need a more expensive model2. The router does not need to be right every time; it needs a confidence gate that sends uncertain prompts up a tier, so a misroute costs money rather than quality.

Search, reranking and RAG context

Retrieval produces candidates; deciding which ones answer the question is a judgment. TypeSafe lists scoring query-to-candidate relevance, reranking, and selecting useful context for downstream AI workflows2. Its reranking cookbook takes 30-passage BM25 shortlists for 40 legal queries from the CLERC dataset and asks one question per query–passage pair; on jev-1.12, the correct passage reached first place for 18% of queries, up from 5% with BM25 alone, and the top ten for 62%, up from 38%7. The useful part for a RAG system is the cut: passages scored as irrelevant never reach the generating model's prompt, which shortens it.

Sales: lead qualification and routing

Inbound leads arrive as forms, emails and company profiles. TypeSafe describes matching them to an ideal customer profile, scoring industry fit and company maturity, detecting buyer relevance, pain points and purchase intent, and prioritising and routing leads2. A fit Score, an intent Noul and a segment Choice give the CRM three fields it can sort and assign on, with low-confidence leads left for a person to read.

Insurance claims and financial crime

Claims and alerts share a structure: a large stream, most of it routine, a small part needing a specialist. For insurance, TypeSafe lists classifying first-notice-of-loss reports and adjuster notes, detecting complexity, missing information and potential fraud indicators, prioritising straight-through processing or specialist review, and escalating uncertain or high-risk cases to a human adjuster2. For financial crime it lists evaluating transaction narratives and KYC documents, matching entities across inconsistent records, prioritising alerts and routing ambiguous cases to investigators2.

In both, Jev ranks and routes; it does not decide a claim or file a report. Its documented weakness with numbers and dates also matters here: amounts, thresholds and time windows are computed in code from fields the model extracts or the system already holds3.

A contract review is a checklist: is each required term present, is any prohibited clause there, what kind of clause is this. TypeSafe lists classifying contracts, policies, filings and marketing claims, detecting missing clauses, prohibited claims and policy violations, and escalating uncertain findings to counsel2. Asking one Noul per required term over one clause at a time keeps each state small and each answer checkable, and the output is a gap list for a lawyer rather than a verdict.

TypeSafe's SEC filings cookbook shows why confidence matters for this kind of classification. Across 60 annual reports classified by industry, a confidence cutoff of 0.9 split them in half: the confident half was right 90% of the time, the other half 40%, which rose to 70% when reported one level up the industry hierarchy8. The design that follows is to act on the confident half and handle the rest differently, not to accept one average accuracy figure.

Catalog, listings and feature extraction

Retail platforms with many sellers normalise listings, extract attributes from titles and descriptions, and detect prohibited listings and counterfeit signals2. Because Jev does not generate text, attribute extraction works best as a Choice over known values, or as a check over candidates a parser has already proposed3.

The last use is less obvious and often the most valuable: turning text into features for a classical model. TypeSafe describes extracting probabilistic signals — purchase intent, churn risk, urgency — from natural-language data and combining them with structured data in models trained on real outcomes2. A churn model that already uses billing and usage data gains a column for how a customer's support messages read.

Recruiting and other decisions about people

TypeSafe lists recruiting: evaluating applications against explicit, job-related criteria, scoring evidence for required competencies, routing candidates and escalating uncertain cases for human review2. Decisions about people deserve a stricter design than the others in this guide. Write the criteria as job-related evidence, keep a person deciding, log every answer with the model version that produced it, and check outcomes across groups. The European Commission lists AI tools for employment and the management of workers, such as CV-sorting software, among the AI Act's high-risk uses, with the rules for that area applying from 2 December 20279. Treat hiring, lending and insurance decisions as regulated work, not as a classification exercise.

Choosing the first use case

  1. 1 · fit

    High volume

    Thousands of the same judgment a day, where per-call cost and latency add up.

  2. 2 · fit

    Closed answer set

    The outcome is a label, a yes/no or a level your code branches on.

  3. 3 · fit

    Ground truth exists

    Past decisions or a reviewed sample you can score the model against.

  4. 4 · care

    Reversible or reviewed

    Where a wrong answer is costly or affects a person, confidence gates send it to someone.

Four properties of a good first decision to move onto Jev.

The best first candidate is a decision you already make thousands of times a day, whose answer is a label your code branches on, and for which you have past outcomes to test against. Support triage and moderation usually qualify. Run the questions over a few hundred labelled examples with a pinned model version — TypeSafe's jev-latest alias moves with each release10 — find the confidence threshold above which the answers are right often enough, and start by acting only above it.

Running these decisions through INFRO

INFRO implements TypeSafe's endpoint at the same path, POST /v1/systemone, with the same request body, so each of these designs runs through the same gateway as the application's LLM calls, on the customer's own TypeSafe connection and TypeSafe bill. TypeSafe connections are available in production: Jev through INFRO shows the setup, and the System One reference the request, the response and the errors.

With a connection in place, a metadata value such as {"workflow": "claims-triage"} on each request groups Jev decisions by use case in usage and traces, beside the LLM calls the same workflow makes. Spend limits apply to Jev requests as they do to any other, checked before the call. Each response carries usage.cost, the estimated TypeSafe charge, so the cost of a decision and the cost of the escalations it triggered can be read per workflow.

From the team that builds it

Where this shows up in INFRO

INFRO is a control plane in front of the provider accounts you already hold. The capabilities below are the parts of it this article touches, each with the documentation that defines its behaviour.

INFRO is in private early access. Provider usage is billed to you by your providers; INFRO charges a software subscription and takes 0% of model spend. See plans.

Sources

Numbered in order of first citation. Each was opened and checked against the claim on the date shown.

  1. 1.API reference (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  2. 2.Example use cases (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  3. 3.Jev 1.13 jaggedness (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  4. 4.Confidence (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  5. 5.Intent routing (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  6. 6.Guardrails for LLMs (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  7. 7.Re-ranking (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  8. 8.Classification using confidence (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.
  9. 9.AI Act (opens in a new tab) — European Commission. Accessed Oct 6, 2026.
  10. 10.Models (opens in a new tab) — TypeSafe. Accessed Oct 6, 2026.

About this article

Use cases are drawn from TypeSafe's use-case map, patterns and cookbooks, read on 2026-10-06; cookbook figures are TypeSafe's, on the model version each cookbook names. Request designs in the tables are illustrations written for this article, not tested configurations. INFRO behaviour is described from the gateway source.

Last checked against its sources on . The next review is due by . No separate named reviewer is recorded for this article.

How articles are written, sourced and corrected is set out in the editorial standards.

Revision history

  1. TypeSafe connections opened in production: linked the setup page and the System One reference.