Decision Models · Part 2 of 8
The primitives: state, noul, choice, and score
Shared context, four question types, and a confidence number that is not the same statistic from vendor to vendor. A threshold does not travel with you.
12 Nov 2026
The one idea
Part 1 was the interface and the inference graph: shared evidence plus typed questions in, calibrated probabilities out, in one forward pass. This part is the vocabulary of that interface — what the four question types actually return, what the shared context is called, and why copying a confidence cut from one API to another is a bug.
TypeSafe and Perplexity call the shared context state. OpenAI and Google call it input. The four question types are choice (always picks, even if nothing fits), score (the expected level, Σ i·P(i)), noul (yes or no, P(yes) — TypeSafe’s coined name, adopted by Perplexity and Google; not “null,” and not an abstain; OpenAI uses predicate), and box (Jev 1.14 only, among the APIs this series checked). Companion noul is how TypeSafe prefers to handle “none of the above.”
State, or input: the evidence every question sees
The naming split is consistent and it is only a name. TypeSafe and Perplexity put the shared evidence in a field called state. OpenAI and Google put it in input. In every documented API, that field is what every question in the request is judged against: a support ticket, a passage, a photo, a JSON record, a short conversation.
The documented shapes differ around the edges, which is worth knowing when you port a request, and is not a claim about the model underneath. TypeSafe’s state is a string, a JSON object, or an array, and it can include images; their docs say audio and video are “not natively supported (yet).” Google’s input uses the same content-block schema as their Interactions API — text, image, audio, video, and PDF — and they tell you to serialize JSON to a string so keys stay data rather than blocks. OpenAI accepts a string or an ordered array of messages, tool calls, and tool outputs, and has a first-class input_json content part. Those are vendor-documented request shapes. How Jev, Luna, or Gemini Decision 1 attends to the field has not been published, and this series does not invent it.
Choice always picks
A Choice question selects one option from a list you define. What comes back is the winner — the option with the highest probability — the full distribution over every option you supplied, and, on every documented API that returns one, a confidence.
The important behavioral fact, in TypeSafe’s own words: “A Choice question always picks an option, even when none of them applies.” Ask which of three products a message is about, and a message about none of them still gets an answer, “possibly with a high probability. The model is answering the question it was asked, so it picks whichever of the three options is closest.” vendor-claimed Google says the same thing in different words: Choice questions “always distribute probability across your options, even when none fits,” and exact ties break to the alphabetically first key, because they sort option keys in UTF-8 byte order before evaluation. vendor-claimed
Documented limits: TypeSafe and Perplexity accept up to 255 options (Perplexity’s range is 1 to 255). The way out of “always picks” is not an abstain output. It is a second question — the companion noul — later in this part.
Score is an expected level
A Score question places the evidence on an ordered rubric you write. Levels are numbered from 0, in the order you list them. The returned score is the expected level.
The same identity in TypeSafe’s Score docs, Perplexity’s quickstart, OpenAI’s guide, and Google’s API reference.
It can land between two levels. TypeSafe’s published Safari-crash example puts 0.57 on “workaround exists” (level 1) and 0.43 on “no workaround” (level 2), and reports a score of 1.43: 0·0.00 + 1·0.57 + 2·0.43 = 1.43. vendor-claimed Our arithmetic confirms that published arithmetic. Confidence on the same answer is 0.35 in the published JSON; the exact value of their formula is 0.355, which they also write as “≈ 0.35” on the Confidence page. Different distributions can share a score — all of the mass on level 1, or half on 0 and half on 2, both average to 1.0 — so you read probabilities and confidence alongside it. That last observation is TypeSafe’s; Google makes the same point on their severity example.
The number of levels you may send is not a portable constant:
| API | Levels per score | Source |
|---|---|---|
| TypeSafe Jev | Up to 10; “should have at least two” | Official docs vendor-claimed |
| Perplexity | 1 to 10 | Official docs vendor-claimed |
| OpenAI Luna | 2 to 10 | Official guide vendor-claimed |
| Gemini Decision 1 | 2 to 255; 2 to 10 recommended for most rubrics | Official docs vendor-claimed |
Noul is P(yes) — not “null,” and not abstain
Noul is TypeSafe’s coined name for a yes/no question. The answer is one number: the probability that the answer is yes, from 0 to 1. A value near 1 is a strong yes, near 0 a strong no, near 0.5 an even split. That is the whole distribution — two outcomes, one number.
Perplexity and Google adopted the name and the shape. OpenAI uses predicate and returns the same idea in a field called probability. The contract is the same: P(yes), or P(true).
TypeSafe and Perplexity do not return a separate confidence on a noul. TypeSafe’s Confidence page is explicit: if you want a confidence-style number anyway, so you can threshold nouls and choices with the same code, use |2p − 1|. That is a published suggestion, not a returned field, and it is 0 at p = 0.5 and 1 at 0 or 1. Google does return a confidence, and it is a different expression: max(noul, 1 − noul). Google also bounds noul itself to [0.01, 0.99], and warns that a check above 0.99 never matches. vendor-claimed Their published sweater example — a color-preference return, asked as a defect — comes back { noul: 0.03, confidence: 0.97 }, which is exactly max(0.03, 0.97). Our arithmetic confirms.
Those two “confidence-style” numbers are not on the same scale. At p = 0.7, Google’s confidence is 0.7; TypeSafe’s optional conversion is 0.4. our arithmetic A 0.7 cut copied from one page to the other does not mean what you think it means. For a noul, TypeSafe’s own advice is to threshold the value itself — they suggest 0.7 for yes and 0.3 for no as a starting point, and to give the band in between its own outcome in code.
Box is Jev 1.14 only
Box locates something in an image. The answer is four edges — top, bottom, left, right — each a fraction of the image’s width or height, from 0 to 1, plus a confidence. TypeSafe’s published mug example, on jev-1.14.0, reports { top: 0.25, bottom: 0.82, left: 0.44, right: 0.84 } and confidence 0.92. vendor-claimed They have not published the formula behind that confidence, and we do not invent one.
A Box always returns a box. There is no “not found” answer, so a question about something absent still returns four edges. TypeSafe’s advice is the companion-noul pattern again: in the same request, ask whether the target is in the image, and ignore the box when that noul is low.
Among the commercial APIs this series checked — TypeSafe, Perplexity, OpenAI, Google, and Microsoft-Decision-1 as listed on OpenRouter — Box is documented on Jev 1.14 only.
A lab, on the published examples
Pick a type, load a documentation example, edit the distribution, and watch each vendor’s published formula produce the fields that API would return. The starting numbers are vendor-claimed. Everything the sliders recompute is our arithmetic on those formulas, not a live call. OpenAI’s confidence stays blank on purpose: their guide returns the field and does not say how it is computed.
How severe is the issue? (Perplexity Decisions API quickstart, published response)
Expected score Σ i·P(i) = 1.7839our arithmetic · published score 1.7838686319784252vendor-claimed
Companion noul, not “other,” and not abstain
Because Choice always picks, “none of the above” is a design you add, not a behavior you get for free. TypeSafe’s preferred design is a companion noul: in the same request, a yes/no that asks whether any of the options fits at all. Your code reads the Choice only when that noul is a clear yes.
Their published desk-lamp example is the demonstration. The Choice picks desk_pro at 0.96, with a confidence of 0.94 — our arithmetic on their choice formula, (0.96 − 1/3) / (2/3) = 0.94, confirms. The companion noul is 0.02. vendor-claimed Nothing in the Choice tells you the message isn’t about your desk; of the three options, a desk lamp is closest to a desk. A recruiter’s cold email, in the same table, is also routed to desk_pro, at 0.81, with a noul of 0.02.
The gate you put on P(yes) is an act-versus-escalate rule, not an abstain threshold. The noul answered a real question: “is this about one of our products?” TypeSafe’s published starting cuts are 0.7 for yes, 0.3 for no, and 0.7 for the Choice’s top probability — vendor-suggested starting points, to be tuned on your own traffic, which is also their advice.
A Choice among the three products always picks one. A side noul asks whether any product fits. Your code reads the Choice only when the noul is a clear yes. vendor-claimed TypeSafe’s documented pattern.
Choice confidence 0.940vendor-claimed — our arithmetic on TypeSafe’s choice formula also gives 0.940. A high Choice confidence does not tell you the message is about your products. The desk-lamp row is the published demonstration: desk_pro at 0.96 with confidence 0.94, noul 0.02.
Adding other: 'Something else' looks like less work. TypeSafe says they used to recommend it, and that it falls short because other competes with the real options for probability. A message that is partly about a product and partly not splits between other and that product, “and neither number tells your code what to do.” In their tests, a companion noul “usually works better” — vendor-claimed no published figures for those tests, and no published “other” distribution for these four messages, so this column is a schematic, not a model output.
The bars are an illustration of probability competing, with numbers we chose to show a split. They are not Jev’s answer to any of the four messages.
Google’s docs, separately, offer three vendor-claimed remedies for the same “always distributes” fact: threshold confidence, pair the choice with a yes/no scope check (the companion-noul idea), or add a catch-all such as “other” — and they warn against positional keys like none_of_the_above, because they sort option keys alphabetically. OpenAI’s guide: “Include a fallback option such as ‘other’ when your categories don’t cover every possible input.” Three vendors, three pieces of advice; none of them is a measured bake-off we can cite.
The companion noul is a clear no. The Choice still picked a product — that pick is noise. This is not an abstain: the noul answered a real yes/no, “is this about one of our products?”
The band between the two cuts is escalate-to-a-person, not “the model abstained.” TypeSafe’s published starting points are 0.3 and 0.7 for the noul and 0.7 for the Choice’s top probability vendor-claimed. The product-sure cut stays at 0.7 in this lab, as in their sample code. These are starting values to tune on your own traffic, which is also their advice.
Confidence is not one statistic, and thresholds are not portable
Confidence is a summary of a distribution, computed from the probabilities the answer already gives you. It is not a second model, and it is not a portable unit of certainty.
Choice. TypeSafe and Perplexity publish the same formula:
TypeSafe Confidence page; Perplexity Decisions API quickstart. For three options this is also (3 × p_max − 1) / 2, which is the identity TypeSafe’s own demo quotes.
It is 0 at an even split and 1 when one option has all the mass. Only the top probability counts, so (0.6, 0.3, 0.1) and (0.6, 0.2, 0.2) both have confidence 0.4. our arithmetic Google’s Choice confidence is just p_max — the top probability itself. OpenAI returns a confidence field and does not publish the formula; we do not invent one.
Score. TypeSafe and Perplexity look similar and are not the same. Both use the same numerator: the probability-weighted distance from the most likely level, Σ pᵢ |i − m|. They disagree on the denominator.
TypeSafe Confidence page, including their published Python. MAD_unif is the mean absolute deviation of a uniform over the levels, measured from the middle.
Perplexity Decisions API quickstart. The baseline is the unweighted average of |i − top| — measured from the peak, not from the middle. A one-level score, which they allow, has confidence 1.
When the peak is the middle level, those denominators are equal and the two confidences agree. On TypeSafe’s published Safari-crash answer, (0, 0.57, 0.43), both formulas give 0.355; TypeSafe’s JSON reports 0.35. our arithmetic When the peak is at an end, they do not agree. Perplexity’s own published severity example — probabilities 0.0084, 0.1993, 0.7923, peak at level 2, published confidence 0.7838686319784252 — is confirmed exactly by their formula. The same distribution, under TypeSafe’s formula, is 0.6758. our arithmetic Google, on that distribution, would report 0.792, the top probability: a third number.
Three numbers, one set of probabilities. A 0.8 threshold is not portable — not from Jev to Gemini, not from Jev to pplx-decider, and, as Part 1 already noted, not even from one Perplexity generation to the next (their published calibration temperatures are 2.2076 on v1, 1.0087 on v1.1, and 1.382 on v1.2). Part 8 comes back to the migration bug. For now, the practical rule is: set every threshold on the statistic you actually receive, against labeled examples from the model you are calling.
Published example, Perplexity Decisions API quickstart, severity answer. vendor-claimed
Key numbers
- state / input
- Two names, one roleTypeSafe and Perplexity: state. OpenAI and Google: input. Vendor-documented field names.
- 0.676 vs 0.784
- Same published severity distributionTypeSafe’s formula vs Perplexity’s, on Perplexity’s published high-end-peak example. Our arithmetic. Perplexity’s published confidence is 0.7838686319784252, which their formula matches exactly.
- 0.355 = 0.355
- Same formulas, mid-peak, they agreeTypeSafe’s published (0, 0.57, 0.43). Our arithmetic; their JSON rounds this to 0.35.
- 0.96 / 0.94 / 0.02
- Desk lamp, companion noulChoice, choice-confidence, and companion noul. Vendor-claimed, TypeSafe Companion Noul docs, jev-1.14.0. Our arithmetic confirms the 0.94.
- [0.01, 0.99]
- Google’s noul boundsVendor-claimed. Confidence is max(noul, 1 − noul). Their sweater example: noul 0.03, confidence 0.97.
- 2–10 / 1–10 / 2–255
- Score level ranges, by vendorOpenAI 2–10; Perplexity 1–10; TypeSafe up to 10; Gemini 2–255 (2–10 recommended). Vendor-claimed.
Independently measured latency and official prices were Part 1. This part’s numbers are vendor-claimed documentation examples and our arithmetic on published formulas. Closed-model internals stay unpublished.
Self-check
What does a noul return, and is it an abstain?
Can a Choice refuse to pick when nothing fits?
On Perplexity’s published high-end severity example, do TypeSafe’s and Perplexity’s score-confidence formulas agree?
You have a 0.8 confidence threshold that worked on Jev. Can you paste it into Gemini Decision 1?
Resources
- TypeSafe: Statedocs.typesafe.ai
- TypeSafe: Choicedocs.typesafe.ai
- TypeSafe: Scoredocs.typesafe.ai
- TypeSafe: Nouldocs.typesafe.ai
- TypeSafe: Boxdocs.typesafe.ai
- TypeSafe: Confidence (choice and score formulas)docs.typesafe.ai
- TypeSafe: Companion Nouldocs.typesafe.ai
- Perplexity Decisions API quickstart (formulas and worked example)docs.perplexity.ai
- OpenAI Decisions API guidedevelopers.openai.com
- Google: Introducing the Gemini Decisions APIblog.google · 11 Nov 2026
- Gemini Decisions API docs (confidence = top probability)aistudio.google.com
- Gemini Decisions API reference (noul bounds and formulas)aistudio.google.com
Facts as of 12 November 2026, America/New_York. Formulas and documentation examples were re-fetched from first-party pages the same day. Vendor claims, independently measured figures (none new in this part), and our arithmetic are labeled. Jev’s, Luna’s, and Gemini Decision 1’s internals are not invented here. OpenAI’s confidence formula is unpublished; we left it blank. Part 3 is forward passes: one question, or many.