Agent 工具
Jev 演示项目:将编码任务路由到 Grok Build 或 Codex Astra。
Throwaway Jev demo: route coding tasks to Grok Build or Codex Astra
import { experimental_evaluate as evaluate } from 'ai';链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
complexity打分Rate the reasoning and implementation complexity of this task.
0 — mechanical: one obvious localized change with direct verification1 — contained: limited reasoning across a few known files or steps2 — systemic: multiple components, unclear diagnosis, or meaningful tradeoffs3 — high consequence: architecture, security, migration, or broad ambiguous workneedsPlanning是/否Should a capable engineer plan or investigate before changing code?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
complexity: { type: 'score', instructions: 'Rate the reasoning and implementation complexity of this task.',
criteria: ['mechanical: one obvious localized change with direct verification', 'contained: limited reasoning across a few known files or steps', 'systemic: multiple components, unclear diagnosis, or meaningful tradeoffs', 'high consequence: architecture, security, migration, or broad ambiguous work'] },
needsPlanning: { type: 'boolean', instructions: 'Should a capable engineer plan or investigate before changing code?' },
},
});