SDKs & clients
Node client for decision models such as Typesafe Jev
return "https://api.typesafe.ai";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 test/cli.test.ts:86
urgenttrue/falseIs this urgent?
severityscoreHow severe is this?
0 — cosmetic1 — minor2 — major3 — criticalimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
urgent: { type: 'boolean', instructions: 'Is this urgent?' },
severity: { type: 'score', instructions: 'How severe is this?',
criteria: ['cosmetic', 'minor', 'major', 'critical'] },
},
});from test/cli.test.ts:562
answertrue/falseIs this urgent?
import { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
answer: { type: 'boolean', instructions: 'Is this urgent?' },
},
});