Agent 工具
Jev 是 TypeSafe 的 System One 分类器,集成在 Claude Code、Codex、Pi 和 OpenCode 中,实现类型化分类、检查、评分、排序和提问,并支持一键设置。
Jev, TypeSafe's System One classifier, as a tool inside Claude Code, Codex, Pi, and OpenCode: typed classify, check, score, rank, and ask, plus one-command setup.
TYPESAFE_BASE_URL Default https://api.typesafe.ai链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
alive是/否Is this a single short word?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
alive: { type: 'boolean', instructions: 'Is this a single short word?' },
},
});取自 tests/core/client.test.ts:8
q是/否Is this a greeting?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
q: { type: 'boolean', instructions: 'Is this a greeting?' },
},
});