SDKs & clients

advocaat

@pithings85TypeScriptMITupdated 2026-09-18runnable

A small, type-safe client for asking AI questions about your data, powered by TypeSafe Jev.

pithings/advocaat

Where it calls Jev

/** Env: `TYPESAFE_BASE_URL`. Default: `https://api.typesafe.ai` (gateway: `https://ai-gateway.vercel.sh/v4/ai`) */

src/api.ts:162

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/api.test.ts:173

  1. urgencyscore

    Urgency?

    • 0low
    • 1high

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: {
    urgency: { type: 'score', instructions: 'Urgency?',
      criteria: ['low', 'high'] },
  },
});

Other projects in this category