榜单与资源
通过 Jev 增强 Pydantic 的 AI 功能,提供多个单文件可运行示例。
Pydantic AI capabilities made stronger with Jev: small runnable demos, one file each
# dependencies = ["pydantic-ai-slim[anthropic]>=2", "typesafe-sdk>=0.6", "logfire>=4", "rich"]链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
取自 shell_guard/shell_guard.py:87
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?' },
},
});