jev-fanout
Ask every independent TypeSafe Jev question in one POST /v1/systemone (speculative fan-out). Use for parallel questions, smart-home or compound commands, one-call turn assessment, or when the user runs /jev-fanout. Do not fire one HTTP call per question.
- License 许可
- MIT
- 最近更新
- 2026-10-15
- Stars
- ★ 141
- Forks
- 30
01 前言 Front Matter
- name
- jev-fanout
- description
- Ask every independent TypeSafe Jev question in one POST /v1/systemone (speculative fan-out). Use for parallel questions, smart-home or compound commands, one-call turn assessment, or when the user runs /jev-fanout. Do not fire one HTTP call per question.
03 SKILL.md 正文
Jev speculative fan-out
Ask every independent judgment over the same state in one POST /v1/systemone. Questions run in parallel and cannot see each other's answers. Code consumes the ones that apply.
Primitives and auth: skills/jev/SKILL.md. Official pattern: https://docs.typesafe.ai/patterns/fan-out
Do this
- List the judgments the workflow might need, including speculative ones (category, compound, room, device, availability, action per device type).
- Put each in
questionswith completeinstructions. Write the speculative premise into the question (If this is a light command, …). Question IDs are not sent to the model. - Mix
choice,score, andnoulin that one request. Pinjev-1.13.0once thresholds are tuned;jev-latestmoves. - In code, branch on the answers that apply; leave the rest unused.
- Make a second HTTP call only when the next options or next state cannot be built yet.
Do not
- One question per HTTP call
- Hide five judgments in one Choice
- Assume later questions saw earlier answers
Shape
{
"state": "I've been trying to connect Stripe for 3 days. I'm losing sales. Help ASAP.",
"model": "jev-latest",
"questions": {
"department": {
"type": "choice",
"instructions": "Which team should handle this message?",
"criteria": {
"billing": "Payments, invoicing, refunds",
"technical": "Bugs, outages, integrations",
"other": "Neither fits"
}
},
"frustration": {
"type": "score",
"instructions": "How frustrated does the author appear?",
"criteria": ["Calm, just stating facts", "Frustrated but civil", "Very angry, strong language"]
},
"is_urgent": {
"type": "noul",
"instructions": "Does the message convey urgency or time-sensitivity?"
}
}
}
This repo
examples/04_parallel_fanout.py— Choice + Score + Noul in one calljev_lab/home.pyand/home— ~13 speculative questions, then the dispatcher actspackages/js/src/turn.ts—npx jev turn(route + input guard, one call)docs/smart-home.md
04 同仓库更多 Skills
jev
Use TypeSafe Jev for typed judgments (Choice, Score, Noul) instead of asking a chat model to classify. Pair with a generative model for prose. Use when classifying, routing, scoring, guardrailing, or the user runs /jev.
jev-route
Route with TypeSafe Jev — map Choice plus confidence to act/confirm/human, or pick a coding-agent model tier. Use for confidence routing, model routing, cheap vs frontier, loop-jev, or when the user runs /jev-route or `npx jev route`.
jev-guardrail
Screen LLM input and output with TypeSafe Jev Noul hazard batteries plus a harm Score; policy in code returns pass, review, or block. Use for jailbreak, prompt injection, secret leak, denylist pressure, or when the user runs /jev-guardrail or `npx jev guard`.
jev
暂无简介
jev-route
暂无简介
jev-guardrail
暂无简介