typesafe-jev
БесплатноБез исполняемых скриптовНе проверенBuilding against TypeSafe's Jev: the /v1/systemone HTTP API, the Python (`typesafe-sdk`) and JS (`@typesafe-ai/sdk`) SDKs, Noul/Choice/Score request and…
от claude-dev-suite★ 51 звезда на GitHubОб этом скилле
TypeSafe Jev — integration reference
Verified against docs.typesafe.ai, the OpenAPI spec, PyPI, npm and the
integration docs on 2026-10-03. Versions at that date: typesafe-sdk 0.7.2,
@typesafe-ai/sdk 0.6.0, model jev-1.13.0, Pydantic AI 2.53.0,
@ai-sdk/typesafe-ai 3.0.12, langchain-typesafe 0.0.1a3 (alpha).
The SDKs are pre-1.0 and have shipped breaking changes in minor releases —
pin them.
Deeper material:
| File | Covers |
|---|---|
quick-ref/python-sdk.md |
sync/async clients, response_model, retries, exceptions, HTTP/2, logging, gateways |
quick-ref/javascript-and-http.md |
JS/TS SDK, raw HTTP with curl, OpenAPI quirks |
quick-ref/framework-integrations.md |
Pydantic AI, LangChain, Vercel AI SDK, OpenRouter, LiteLLM, DSPy, others |
quick-ref/question-design.md |
writing questions and state, the documented patterns and failure modes |
Deep Knowledge: Use
mcp__documentation__fetch_docswith technology:typesafe-jevand one of these topics:
api-reference: every field, error body and limit, plus where the docs and the OpenAPI spec disagree.python-sdkandjavascript-sdk: the full SDK surface, mock-transport tests and concurrency patterns.pydantic-ai,langchain,vercel-ai-sdk,dspy: one page per integration.recipes-extractionandrecipes-routing: the official cookbooks, ported and runnable.evidence: every independent study, with its methodology and caveats.Every code block there was quoted from a cited source, executed offline against mocks, or type-checked.
Mental model
One request = one state (what is judged) + a map of named questions (what
is asked about it). Every question is answered independently against the same
state, in parallel. The question keys are yours and are not sent to the
model — only instructions and criteria are.
POST https://api.typesafe.ai/v1/systemone
Authorization: Bearer $TYPESAFE_API_KEY
{
"state": "Help! My payouts have been failing for 3 days.",
"model": "jev-latest",
"questions": {
"is_urgent": {"type": "noul", "instructions": "Does this convey urgency?",
"criteria": {"true": "Explicitly time-sensitive", "false": "No urgency expressed"}},
"department": {"type": "choice", "instructions": "Which team should handle this?",
"criteria": {"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"sales": "Pricing, upgrades, new accounts"}},
"frustration": {"type": "score", "instructions": "How frustrated is the customer?",
"criteria": ["Calm", "Frustrated", "Very angry"]}
}
}
| Question | criteria |
Answer fields |
|---|---|---|
noul |
optional {"true": …, "false": …} |
noul (P(yes)) |
choice |
required map option → description or null; ≤ 255 options |
choice, probabilities (option → float), confidence |
score |
required ordered array of level descriptions; 2–10 levels | score (float, can land between levels), legend ("0" → text), probabilities ("0" → float), confidence |
state, instructions and each criterion accept a string, object or array.
Response top level: model (the versioned id that answered), answers,
usage.input_tokens, usage.output_tokens. Request id: x-typesafe-request-id.
Python quickstart
pip install typesafe-sdk # Python >= 3.10; extra: typesafe-sdk[http2]
export TYPESAFE_API_KEY=...
from typesafe_sdk import Choice, Noul, Score, TypeSafeClient
client = TypeSafeClient()
state = "I was charged twice. Please help ASAP."
questions = {
"billing": Noul(instructions="Is this about billing?"),
"tone": Choice(
instructions="What is the tone?", criteria={"calm": None, "angry": None}
),
"urgency": Score(
instructions="How urgent is this?", criteria=["low", "medium", "high"]
),
}
result = client.system_one(state, questions)
print(
result.nouls["billing"].noul,
result.choices["tone"].choice,
result.scores["urgency"].score,
)
result.answers[key] holds every answer; .nouls, .choices, .scores are
typed views. In the SDK, ScoreAnswer.probabilities and .legend are keyed by
int; on the wire they are strings. AsyncTypeSafeClient has the same
surface. Full detail in quick-ref/python-sdk.md.
JavaScript / TypeScript quickstart
npm install @typesafe-ai/sdk # Node.js 20+; ESM + CJS + .d.ts
import { choice, TypeSafeClient } from "@typesafe-ai/sdk";
const client = new TypeSafeClient();
const response = await client.systemOne({
state: { document: "I was charged twice. Please fix this ASAP." },
questions: {
category: choice("What is this ticket about?", {
billing: null,
technical: null,
other: null,
}),
},
});
console.log(response.answers.category.choice);
Helpers
Установить typesafe-jev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWriteEditBashWebFetchВложенные файлы
FAQ
Что делает скилл typesafe-jev?
Building against TypeSafe's Jev: the /v1/systemone HTTP API, the Python (`typesafe-sdk`) and JS (`@typesafe-ai/sdk`) SDKs, Noul/Choice/Score request and answer shapes, model ids and pinning, limits, pricing, retries, errors, gateways, and the framework integrations (Pydantic AI `TypeSafeModel`, LangChain `TypeSafeClassifier`, Vercel AI SDK, OpenRouter, LiteLLM, DSPy). USE WHEN: code imports `typesafe_sdk`, `@typesafe-ai/sdk`, `langchain_typesafe`, `@ai-sdk/typesafe-ai`, or uses `typesafe:jev-latest`, `client.system_one`, `client.systemOne`, `TYPESAFE_API_KEY`, `api.typesafe.ai`; user asks how to call Jev, write Noul/Choice/Score questions, or wire Jev into an agent. DO NOT USE FOR: deciding *whether* a typed decision model fits (load `typed-decision-models`) or fitting/validating its probabilities (load `decision-model-calibration`).
Как установить скилл typesafe-jev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл typesafe-jev запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic