护栏与审查
pi 编码 agent 的运行时约束:在执行每个有副作用的工具调用前,检查是否符合你的指令,基于 TypeSafe Jev 实现。
Runtime constraints for the pi coding agent: checks every side-effecting tool call against what you said, before it runs. Powered by TypeSafe Jev.
const TYPESAFE_URL = "https://api.typesafe.ai/v1/systemone";链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
instructions是/否Does `user_message` take back `rule`?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
instructions: { type: 'boolean', instructions: 'Does `user_message` take back `rule`?' },
},
});