SDKs & clients
n8n community node for TypeSafe Jev structured AI decisions
default: 'https://api.typesafe.ai',credentials/TypeSafeApi.credentials.ts:31
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 scripts/verify-api.mjs:104
intentchoiceWhat is the primary request?
refund — Wants money returned.help — Wants something fixed.urgenttrue/falseDoes the customer convey time pressure?
frustrationscoreHow frustrated is the customer?
0 — Calm or neutral1 — Concerned but civil2 — Very angryimport { experimental_evaluate as evaluate } from 'ai';
const { answers } = await evaluate({
model: 'typesafe-ai/jev',
state,
questions: {
intent: { type: 'choice', instructions: 'What is the primary request?',
criteria: { refund: 'Wants money returned.', help: 'Wants something fixed.' } },
urgent: { type: 'boolean', instructions: 'Does the customer convey time pressure?' },
frustration: { type: 'score', instructions: 'How frustrated is the customer?',
criteria: ['Calm or neutral', 'Concerned but civil', 'Very angry'] },
},
});