游戏与仿真
Chakravyuha 是一个极环迷宫,每步都是 Jev (TypeSafe System One) 的决策,模型选步,路径评分,历史页评估置信度。
Chakravyuha — a polar ring-maze where every move is a Jev (TypeSafe System One) decision. A fun experiment: the model picks each move, the walk grades it green or red, and the history page asks whether its confidence score can be trusted. BYOK, no build step.
// direct POST https://api.typesafe.ai/v1/systemone with链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
next_move选项Which move is the FIRST move of a shortest route from Abhimanyu to the centre?
inward — ring 3 → ring 2, same sectoroutward — ring 3 → ring 2, same sectorclockwise — sector 0 → sector 1, same ringimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
next_move: { type: 'choice', instructions: 'Which move is the FIRST move of a shortest route from Abhimanyu to the centre?',
criteria: { inward: 'ring 3 → ring 2, same sector', outward: 'ring 3 → ring 2, same sector', clockwise: 'sector 0 → sector 1, same ring' } },
},
});