SDK 与客户端

dsh-jev

@noetion3TypeScriptMIT更新于 2026-09-18可当场跑

DSH 包,注册 jev_ask 用于 TypeSafe Jev 的 noul、choice 和 score 答案。

英文原文

DSH bundle that registers jev_ask for TypeSafe Jev noul, choice, and score answers.

noetion/dsh-jev

它在哪儿调用了 Jev

export const DEFAULT_ENDPOINT = 'https://api.typesafe.ai/v1/systemone'

src/client.ts:9

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

它问 Jev 的问题

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

取自 scripts/live-smoke.ts:10

  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/apply.test.ts:41

  1. is_urgent是/否

    Does this convey urgency?

用你自己的内容跑一遍

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

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

同类的其他项目