Agent 工具
基于有界TypeSafe Jev的编码agent工作流管理工具。
Bounded TypeSafe Jev workflows for coding agents.
import { TypeSafeClient } from "@typesafe-ai/sdk";链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
取自 examples/workflows/stale-todo-audit.ts:28
stale选项Is this TODO comment still actionable?
actionable — Describes concrete remaining work.stale — Refers to work that is clearly done or no longer relevant.cannot_tell — The comment alone does not say.import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
stale: { type: 'choice', instructions: 'Is this TODO comment still actionable?',
criteria: { actionable: 'Describes concrete remaining work.', stale: 'Refers to work that is clearly done or no longer relevant.', cannot_tell: 'The comment alone does not say.' } },
},
});取自 src/workflows/analyze-diff.ts:359
evidence_sufficient是/否Is the shown diff evidence sufficient for the selected classification?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
evidence_sufficient: { type: 'boolean', instructions: 'Is the shown diff evidence sufficient for the selected classification?' },
},
});取自 src/workflows/check-task.ts:195
weakens_expectation是/否Does test hunk ${hunk.id} weaken what the test expects?
expectation_change_stated_in_task是/否Does the requested behavior require or clearly entail that the old expectation in hunk ${hunk.id} should no longer hold?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
weakens_expectation: { type: 'boolean', instructions: 'Does test hunk ${hunk.id} weaken what the test expects?' },
expectation_change_stated_in_task: { type: 'boolean', instructions: 'Does the requested behavior require or clearly entail that the old expectation in hunk ${hunk.id} should no longer hold?' },
},
});