Judgevet

io.github.Alberto-Codes由 GitHub 账号 Alberto-Codes 发布v0.23.0更新于 Nov 1, 2026

Ask TypeSafe Jev yes/no, choice and score questions and receive structured model judgments.

已验证STDIO仅桌面数据与分析AI 与机器学习

概览

AI 生成的概览

非官方 MCP 服务器,让助手把内容和类型化问题发送给 TypeSafe 的 Jev 判断模型,获得结构化的是/否、选项或评分答案。

可以做什么
  • 对一段内容提出是/否概率问题
  • 提出选项类问题,返回所选标签、各标签概率与置信度
  • 提出评分类问题,返回连续分数、评分说明、各等级概率与置信度
  • 按本地接受策略评估答案是否达到最低阈值
适用场景
适合需要模型对内容给出判断的场景,例如判断工单是否涉及账单问题,或在智能体流程中加入类型化判断与本地策略校验。若只用 Python 库或命令行,则无需安装。
运行要求
以 PyPI 包 judgevet 通过 uvx 在本地以 stdio 运行,需要 Python 3.12 或更高版本;需通过环境变量 JEV_API__KEY 提供 TypeSafe API 密钥,并需要访问 TypeSafe 服务的网络连接。
安装前请注意
内容、问题与所选模型都会发送到 TypeSafe 服务,只应提交获准披露的内容。不要把 API 密钥写入源码或命令行参数。模型返回的是概率而非已验证的正确性,通过策略也不代表答案正确。调试输出和错误堆栈可能包含敏感内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Judgevet,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

judgevet

[CI] [Coverage] [Licence] [Ruff] [docvet]

A typed Python client for TypeSafe's Jev (System One) judgment model, with CLI and optional MCP entry points. Use it to ask structured questions about content—for example, whether a support ticket concerns billing.

The state is your content. A question describes what to evaluate. A typed answer contains the model's values, which your application can inspect or compare with a local acceptance policy.

Unofficial and not affiliated with TypeSafe. The official TypeSafe Python SDK also provides typed questions and synchronous and asynchronous clients. judgevet adds a shared library, CLI and MCP contract with local policy evaluation. The library and CLI install without the MCP runtime.

Documentation status: draft. Start below or follow the first-judgment tutorial for environment setup, checkpoints and recovery steps.

Install and ask one question

Use Python 3.12 or newer. In a virtual environment:

bash
python -m pip install 'judgevet==0.23.0'judgevet --help

Supply a TypeSafe API key through your process environment or secret provider. This example reads JEV_API__KEY and passes it explicitly to the library. Do not put real keys in source or command arguments. The installation guide covers other installation methods.

This call sends the state, questions and selected model to the configured service. Send only content you are authorized to disclose. Read the data and credential guidance before using sensitive content. The example uses a synthetic ticket:

python
import os
from judgevet import HTTPSystemOneAdapter, Noul
with HTTPSystemOneAdapter(api_key=os.environ["JEV_API__KEY"]) as client:    response = client.system_one(        state="I was charged twice. Please help today.",        questions={"billing": Noul(instructions="Is this about billing?")},    )
answer = response.nouls["billing"]print(f"Probability of billing: {answer.noul}")print(f"Resolved model: {response.model}")print(f"Input tokens: {response.usage.input_tokens}")

The context manager closes the HTTP client after the call. The answer remains available. If the import or call fails, use the tutorial's recovery steps or the troubleshooting guide.

Read the answer and make a decision

A Noul value such as 0.85 reports the model's probability of yes. The actual value varies. It is not a boolean, a measured accuracy rate or an instruction to route the ticket. Noul has no separate confidence field. See the vendor's Noul definition.

The returned container also records the resolved model and token usage. Other question types let you select a label or evaluate an ordered rubric:

QuestionWhat its answer contains
NoulProbability of yes
ChoiceSelected label, per-label probabilities and confidence
ScoreContinuous score, rubric legend, per-level probabilities and confidence

The vendor API reference defines those fields. The question-type explanation shows how to choose a type and distinguish score, confidence and probability.

A local policy can require a minimum value before your application accepts an answer. For example, 0.85 meets a minimum of 0.8 and fails one of 0.9. These are teaching thresholds, not production recommendations. A passing policy does not prove the model is correct or perform the application's next action. Try the first-policy tutorial with synthetic answers; it requires no key or network.

Choose your next task

NeedStart here
Learn one complete service callFirst judgment
Call from an async applicationAsync Python guide
Use a mounted key or secret providerCredential sources
Deploy in containers or serverlessDeployment guide
Correlate diagnostic eventsEvent contract and caller binding
Configure a proxy or private CANetwork configuration
Configure bounded retriesRetry limits
Handle service and transport failuresLibrary error handling
Evaluate typed or JSON policies in PythonPolicy guide
Use shell commands, files or stdinCLI inputs and CLI policies
Give an agent judgment toolsOptional MCP installation, connection and discovery
Look up types, options or schemasReference map
Understand thresholds and tradeoffsLocal policy explanation
Choose an entry point and own its lifecycleLibrary-first architecture

The CLI uses the same library and can return JSON or a policy exit status. The optional MCP server exposes ask_noul, ask_choice, ask_score and evaluate_policy over stdio. Follow the connection guide to install the extra and configure a host. These are alternative entry points; you do not need MCP to use Python or the CLI.

Know the limits

Exact documentation examples run against isolated installations with synthetic answers. Those checks establish local wiring, not model quality or calibration. Live evidence covers only the observed cases and resolved jev-1.13.0 model. The 429/529 error bodies remain unseen; other models and untouched fields remain unverified. The verification explanation separates local tests, vendor statements and live observations.

Diagnostics are quiet by default. Debug metadata excludes state and question text, but protocol errors, CLI error envelopes and arbitrary tracebacks can contain sensitive content. Review them before sharing. The security policy describes credential, disclosure and diagnostic limits.

Maintainers

Read the contribution policy before proposing work. Use the maintainer procedures for documentation checks, package verification and releases. Repository contribution rules define gates and commits. The verification ledger records which service claims a live call has verified.

来源:README.md,提交 681011a

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:软件包安装失败。

版本历史

13
  1. v0.23.0最新Oct 25, 2026
  2. v0.22.0Oct 22, 2026
  3. v0.21.0Oct 21, 2026
  4. v0.20.0Oct 9, 2026
  5. v0.18.0Oct 5, 2026
  6. v0.17.0Oct 1, 2026
  7. v0.16.0Oct 1, 2026
  8. v0.15.0Sep 30, 2026
  9. v0.14.0Sep 29, 2026
  10. v0.13.0Sep 26, 2026
  11. v0.12.0Sep 25, 2026
  12. v0.10.2Sep 25, 2026
  13. v0.10.1Sep 24, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分