榜单与资源

pydantic-jev-examples

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

通过 Jev 增强 Pydantic 的 AI 功能,提供多个单文件可运行示例。

英文原文

Pydantic AI capabilities made stronger with Jev: small runnable demos, one file each

adtyavrdhn/pydantic-jev-examples

它在哪儿调用了 Jev

# dependencies = ["pydantic-ai-slim[anthropic]>=2", "typesafe-sdk>=0.6", "logfire>=4", "rich"]

flappy_bird/demo.py:3

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

它问 Jev 的问题

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

取自 shell_guard/shell_guard.py:87

  1. irreversible是/否

    Would running this destroy data, rewrite shared history, or leak secrets, irreversibly?

用你自己的内容跑一遍

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

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    irreversible: { type: 'boolean', instructions: 'Would running this destroy data, rewrite shared history, or leak secrets, irreversibly?' },
  },
});

同类的其他项目