Open reproductions
OpenDecision is an open-source semantic decision engine like typesafe's jev.
"/v1/systemone",src/opendecision/api/app.py:82
The link points at the commit we read, so the line number still holds.
These question sets are lifted from this project's source exactly as written.
from examples/m3_typesafe_sdk_demo.py:9
departmentchoiceWhich department should handle this?
billing — Payments and refundstechnical — Software problemssales — Purchasing questionsurgenttrue/falseThis request is time-sensitive.
frustrationscoreHow frustrated is the customer?
0 — Calm1 — Frustrated2 — Extremely angryimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
department: { type: 'choice', instructions: 'Which department should handle this?',
criteria: { billing: 'Payments and refunds', technical: 'Software problems', sales: 'Purchasing questions' } },
urgent: { type: 'boolean', instructions: 'This request is time-sensitive.' },
frustration: { type: 'score', instructions: 'How frustrated is the customer?',
criteria: ['Calm', 'Frustrated', 'Extremely angry'] },
},
});