Agent 工具
Claude Code、Codex 和 pi 插件,将无需文本输出的 agent 步骤交给 Jev(TypeSafe 的判断模型)处理,延迟约 230 毫秒,成本约 0.02 美元每千次判断,支持类型化回退到 LLM。
Claude Code / Codex / pi plugin that hands agent steps needing no text output to Jev (TypeSafe's judgment model) — measured p50 ~230 ms and ~$0.02 per 1,000 judgments, with typed escalation back to the LLM
* POST https://api.typesafe.ai/v1/systemone, Bearer TYPESAFE_API_KEY.链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
is_bug是/否Is the customer reporting a software defect?
team选项Which team should own this ticket?
frontend — Rendering issuespayments — Checkout issuesurgency打分How urgent is this ticket?
0 — Can wait1 — This week2 — Blocking revenueimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_bug: { type: 'boolean', instructions: 'Is the customer reporting a software defect?' },
team: { type: 'choice', instructions: 'Which team should own this ticket?',
criteria: { frontend: 'Rendering issues', payments: 'Checkout issues' } },
urgency: { type: 'score', instructions: 'How urgent is this ticket?',
criteria: ['Can wait', 'This week', 'Blocking revenue'] },
},
});