Agent 工具

jev-model-router-demo

@jcpsimmons2JavaScript更新于 2026-09-17可当场跑

Jev 演示项目:将编码任务路由到 Grok Build 或 Codex Astra。

英文原文

Throwaway Jev demo: route coding tasks to Grok Build or Codex Astra

jcpsimmons/jev-model-router-demo

它在哪儿调用了 Jev

import { experimental_evaluate as evaluate } from 'ai';

router.mjs:7

链接指向我们抓取当天的那个 commit,行号是准的。

它问 Jev 的问题

下面是从这个项目源码里原样取出来的 question 组合。

取自 router.mjs:82

  1. complexity打分

    Rate the reasoning and implementation complexity of this task.

    • 0mechanical: one obvious localized change with direct verification
    • 1contained: limited reasoning across a few known files or steps
    • 2systemic: multiple components, unclear diagnosis, or meaningful tradeoffs
    • 3high consequence: architecture, security, migration, or broad ambiguous work
  2. needsPlanning是/否

    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?' },
  },
});

同类的其他项目