SDK 与客户端

jev-system-one

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

一个基于 OpenAI 和 TypeSafe 的 Jev 终端界面,提供带透明决策报告的答案。

英文原文

A polished OpenAI + TypeSafe Jev terminal interface for answers with transparent decision reports

haseeb-heaven/jev-system-one

它在哪儿调用了 Jev

from typesafe_sdk import Choice, Noul, RetryPolicy, Score, TypeSafeClient

src/jev_system_one/jev.py:3

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

它问 Jev 的问题

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

取自 src/jev_system_one/jev.py:32

  1. requires_uncertainty_notice是/否

    Should the answer explicitly disclose uncertainty or limits?

  2. response_depth打分

    How much detail should the answer contain?

    • 0brief: one direct answer with minimal context
    • 1standard: a concise answer with useful explanation
    • 2detailed: a thorough answer with structured reasoning or steps

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    requires_uncertainty_notice: { type: 'boolean', instructions: 'Should the answer explicitly disclose uncertainty or limits?' },
    response_depth: { type: 'score', instructions: 'How much detail should the answer contain?',
      criteria: ['brief: one direct answer with minimal context', 'standard: a concise answer with useful explanation', 'detailed: a thorough answer with structured reasoning or steps'] },
  },
});

取自 src/jev_system_one/jev.py:107

  1. requires_revision是/否

    Should OpenAI revise `openai_draft.answer` before it is shown?

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    requires_revision: { type: 'boolean', instructions: 'Should OpenAI revise `openai_draft.answer` before it is shown?' },
  },
});

同类的其他项目