开源复现

OpenJev

@GPT-AGI2PythonMIT更新于 2026-09-20可当场跑

兼容Jev的系统,开源实现Jev功能。

英文原文

Jev-compatible System 开源Jev

GPT-AGI/OpenJev

它在哪儿调用了 Jev

These models mirror the request / response shape of TypeSafe's ``POST /v1/systemone``

src/openjev/core/primitives.py:3

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

它问 Jev 的问题

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

取自 scripts/test_official_jev.py:32

  1. department选项

    Which team should handle this

    • billingPayment or subscription issues
    • technicalBugs or integration problems
    • salesPricing or account questions
  2. frustration打分

    How frustrated the customer appears

    • 0Calm, just stating facts
    • 1Frustrated but civil
    • 2Very angry, strong language
  3. is_urgent是/否

    The message conveys urgency or time-sensitivity

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    department: { type: 'choice', instructions: 'Which team should handle this',
      criteria: { billing: 'Payment or subscription issues', technical: 'Bugs or integration problems', sales: 'Pricing or account questions' } },
    frustration: { type: 'score', instructions: 'How frustrated the customer appears',
      criteria: ['Calm, just stating facts', 'Frustrated but civil', 'Very angry, strong language'] },
    is_urgent: { type: 'boolean', instructions: 'The message conveys urgency or time-sensitivity' },
  },
});

取自 tests/test_core.py:48

  1. urgent是/否

    Is this urgent?

用你自己的内容跑一遍

代码
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    urgent: { type: 'boolean', instructions: 'Is this urgent?' },
  },
});

同类的其他项目