SDKs & clients

jev_jsonschema

@Kiln-AI5PythonMITupdated 2026-09-19runnable

Run a JSON Schema through TypeSafe's Jev API, and get JSON back.

Kiln-AI/jev_jsonschema

Where it calls Jev

JEV_BASE_URL = "https://api.typesafe.ai"

src/jev_jsonschema/client.py:30

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 tests/test_client.py:58

  1. is_spamtrue/false

    Is this spam?

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: {
    is_spam: { type: 'boolean', instructions: 'Is this spam?' },
  },
});

from tests/test_models.py:172

  1. is_correcttrue/false

    Is the answer correct?

  2. verdicttrue/false

    Overall verdict

  3. starsscore

    Rate 1 to 5

    • 01
    • 12
    • 23
    • 34
    • 45

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: {
    is_correct: { type: 'boolean', instructions: 'Is the answer correct?' },
    verdict: { type: 'boolean', instructions: 'Overall verdict' },
    stars: { type: 'score', instructions: 'Rate 1 to 5',
      criteria: ['1', '2', '3', '4', '5'] },
  },
});

Other projects in this category