SDKs & clients

node-decision-model

@fraserxu1TypeScriptMITupdated 2026-09-19runnable

Node client for decision models such as Typesafe Jev

fraserxu/node-decision-model

Where it calls Jev

return "https://api.typesafe.ai";

src/providers/typesafe.ts:18

The link points at the commit we read, so the line number still holds.

What it asks Jev

These question sets are lifted from this project's source exactly as written.

from test/cli.test.ts:86

  1. urgenttrue/false

    Is this urgent?

  2. severityscore

    How severe is this?

    • 0cosmetic
    • 1minor
    • 2major
    • 3critical

Run it on your own text

The code
import { 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

  1. answertrue/false

    Is this urgent?

Run it on your own text

The code
import { experimental_evaluate as evaluate } from 'ai';

const { answers } = await evaluate({
  model: 'typesafe-ai/jev',
  state,
  questions: {
    answer: { type: 'boolean', instructions: 'Is this urgent?' },
  },
});

Other projects in this category