Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

typed-decision-models

БесплатноБез исполняемых скриптовНе проверен

Replacing an LLM used as a classifier with a model that returns typed decisions and probabilities instead of prose — TypeSafe's Jev and the wider pattern…

claude-dev-suiteот claude-dev-suite★ 51 звезда на GitHub

Об этом скилле

Typed decision models

A class of model that does not generate text. You declare the answer space up front; the model distributes probability inside it. TypeSafe's Jev is the first sold under that banner ("System One", after Kahneman's fast thinking — launched in early access on 2026-09-15), and Pydantic AI already abstracts the class behind a DecisionModel base so other backends can follow.

The point is not speed. The point is that the answer and its uncertainty come back as separate things, so code can act on one and route on the other.

Facts below were verified against primary sources on 2026-10-03. This vendor moves fast: its limitations page was rewritten on 2026-10-02 and its rate limit doubled the same week. Re-check anything operational on docs.typesafe.ai before quoting it.

Related skills

Need Load
Python/JS SDK, HTTP API, limits, pricing, framework integrations ai-integration/typesafe-jev
Building the labelled corpus, ECE, temperature/Platt fits, option-order debiasing, conformal sets, thresholds ai-integration/decision-model-calibration

Deep Knowledge: Use mcp__documentation__fetch_docs with technology: typesafe-jev, topic evidence, for the full ledger of independent studies: their methodology, sample sizes, authors' own caveats and later corrections, and the history of the vendor's limitations page.

The three primitives

asks returns limits (jev-1.13)
Noul is this true? noul: P(yes), 0–1 no confidence field — 0.5 is "unsure"
Choice which of these? choice, probabilities (sum to 1), confidence ≤ 255 options
Score at what level? score (probability-weighted, lands between levels), legend, probabilities, confidence 2–10 ordered levels

Questions in one request share a single read of the state and are independent: one answer never becomes context for another. A decision that depends on a previous one needs a second call. Batching is the main economic lever — the vendor's own cookbook measured 13 questions in one call at 12.2× cheaper and 10.0× faster than 13 separate calls.

What confidence is — and is not

confidence is a dispersion statistic computed from probabilities, not a probability of being right:

  • Choice: (p_max − 1/n) / (1 − 1/n) — so (0.6, 0.3, 0.1) and (0.6, 0.2, 0.2) both give 0.4.
  • Score: max(0, 1 − Σ pᵢ·|i − peak| / MAD_uniform) — mass on a neighbouring level costs less than mass far away.
  • Noul: none returned; the vendor suggests |2p − 1| if you need one on the same scale.

Pydantic AI says it outright: "It is a margin, not a probability that the answer is right." Consequences:

  • A threshold on confidence is an ordering until you have checked it against labels. Only after calibration does "0.9" mean "right 9 times in 10".
  • Thresholds do not transfer between question kinds (a bar tuned on a Noul is meaningless on a Choice), between fields, between backends, or between model versions. Pin the version (jev-1.13.0, not jev-latest) once tuned.

The shape that actually works

Keep every question atomic — glance work, not reasoning. A complex judgement is decomposed into several questions and recomposed in code, where weights change under code review instead of inside a prompt. The vendor calls this "probably the most important concept in this guide."

The best public demonstration is a community benchmark on 2,000 phishing emails (anisselbd/jev-phishing-bench, 2026-09-17): one broad question scored 62.6%; five atomic Noul signals combined by a logistic regression fitted on 1,000 labelled emails scored 95.0% on the other 1,000. Read the caveats the repo itself states before quoting it: Claude Haiku 4.5 asked the same five questions reached 93.2% (difference not significant, p = 0.063), and a two-feature regex reached 91.8% because the dataset "largely separates by construction". The decomposition did the work — for both models.

from typesafe_sdk import Choice, Noul, Score, TypeSafeClient

client = TypeSafeClient()  # TYPESAFE_API_KEY from the environment
result = client.system_one(
    {"ticket": ticket},                      # state: string, object or array
    {
        "department":  Choice(instructions="Which team should handle `ticket`?",
                              criteria={"billing": "Payments, invoicing, refunds",
                                        "technical": "Bugs, outages, integrations",
                                        "other": "Anything else"}),
        "is_urgent":   Noul(instructions="Does `ticket` convey urgency?"),
        "frustration": Score(instructions="How frustrated is the customer?",
                             criteria=["Calm, just stating facts",
                                       "Frustrated but civil",
                                       "Very angry, strong language"]),
    }
Полный SKILL.md на GitHub

Установить typed-decision-models в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Grep
Glob
Write
Edit
WebFetch

FAQ

Что делает скилл typed-decision-models?

Replacing an LLM used as a classifier with a model that returns typed decisions and probabilities instead of prose — TypeSafe's Jev and the wider pattern. Covers the three primitives, the decomposition that makes them work, what `confidence` does and does not mean, and the independently measured evidence on where the vendor's claims hold. USE WHEN: user mentions "Jev", "TypeSafe AI", "System One model", "typed decision model", "decision model", "calibrated probabilities", "classifier instead of LLM", "logprobs", "confidence threshold", "ECE", asks how to get a confidence score out of a model, or asks whether to replace a classification prompt with something cheaper. DO NOT USE FOR: prose generation, code generation, multi-step reasoning, or anything needing a written justification — those are the cases these models explicitly cannot serve. For SDK/API code load `typesafe-jev`; for measuring and fitting probabilities load `decision-model-calibration`.

Как установить скилл typed-decision-models?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл typed-decision-models запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить typed-decision-models с