SDKs & clients

typesafe-jev-workflow

@GiesN6Pythonupdated 2026-09-16runnable

A small async LangGraph workflow that sends a mocked email to TypeSafe's Jev model,

GiesN/typesafe-jev-workflow

Where it calls Jev

from typesafe_sdk import AsyncTypeSafeClient, Choice, Noul, Score

src/typesafe_ai_basic/test_basic.py:3

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 src/typesafe_ai_basic/test_basic.py:13

  1. billingtrue/false

    Is this ticket about billing?

  2. urgencyscore

    How urgent is this ticket?

    • 0can wait
    • 1this week
    • 2today

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: {
    billing: { type: 'boolean', instructions: 'Is this ticket about billing?' },
    urgency: { type: 'score', instructions: 'How urgent is this ticket?',
      criteria: ['can wait', 'this week', 'today'] },
  },
});

Other projects in this category