Agent 工具
Opencode 插件,使用 Jev(system one 模型)辅助软件开发流程,非 Opencode 团队官方项目。
Opencode plugin using Jev (system one model) as part of software development process. Not affiliated with Opencode team.
const model = options.model ?? "~typesafe/jev-latest"链接指向我们抓取当天的那个 commit,行号是准的。
下面是从这个项目源码里原样取出来的 question 组合。
is_urgent是/否Does this message convey urgency?
department选项Which team should handle this?
billing — Payments, invoicing, refundstechnical — Bugs, outages, integrationssales — Pricing, upgrades, new accountsimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
is_urgent: { type: 'boolean', instructions: 'Does this message convey urgency?' },
department: { type: 'choice', instructions: 'Which team should handle this?',
criteria: { billing: 'Payments, invoicing, refunds', technical: 'Bugs, outages, integrations', sales: 'Pricing, upgrades, new accounts' } },
},
});needs_tool是/否Does making progress require calling a tool?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
needs_tool: { type: 'boolean', instructions: 'Does making progress require calling a tool?' },
},
});