Applications

tryjev

@sugarforever1SvelteMITupdated 2026-09-20runnable

Jev Playground

sugarforever/tryjev

Where it calls Jev

<span class="tag">{provider === 'vercel' ? 'experimental_evaluate' : provider === 'typesafe' ? '/v1/systemone' : 'alpha.decisions'}</span>

src/routes/+page.svelte:207

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/lib/cookbook.ts:29

  1. categorychoice

    Main category of this ticket

    • bugProduct failure or unable to use
    • billingCharges, payments or refunds
    • featureFeature request
    • spamSpam or meaningless content
  2. bug_severityscore

    If this is a bug, how severe is it

    • 0cosmetic: minor visual issue
    • 1minor: has a workaround
    • 2major: core feature affected
    • 3blocking: completely unusable
  3. wants_refundtrue/false

    Is the user asking for a refund?

  4. frustrationscore

    The user's mood

    • 0calm
    • 1annoyed
    • 2furious

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: {
    category: { type: 'choice', instructions: 'Main category of this ticket',
      criteria: { bug: 'Product failure or unable to use', billing: 'Charges, payments or refunds', feature: 'Feature request', spam: 'Spam or meaningless content' } },
    bug_severity: { type: 'score', instructions: 'If this is a bug, how severe is it',
      criteria: ['cosmetic: minor visual issue', 'minor: has a workaround', 'major: core feature affected', 'blocking: completely unusable'] },
    wants_refund: { type: 'boolean', instructions: 'Is the user asking for a refund?' },
    frustration: { type: 'score', instructions: 'The user\'s mood',
      criteria: ['calm', 'annoyed', 'furious'] },
  },
});

from src/lib/cookbook.ts:51

  1. finechoice

    Most specific issue type

    • duplicate_chargeCharged more than once for one purchase
    • declined_cardPayment declined at checkout
    • refund_statusAsking where a refund is
    • invoice_requestWants an invoice or receipt
  2. coarsechoice

    Broad department

    • paymentsAnything about charges, cards or refunds
    • accountLogin, profile, settings
    • productUsing the product itself

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: {
    fine: { type: 'choice', instructions: 'Most specific issue type',
      criteria: { duplicate_charge: 'Charged more than once for one purchase', declined_card: 'Payment declined at checkout', refund_status: 'Asking where a refund is', invoice_request: 'Wants an invoice or receipt' } },
    coarse: { type: 'choice', instructions: 'Broad department',
      criteria: { payments: 'Anything about charges, cards or refunds', account: 'Login, profile, settings', product: 'Using the product itself' } },
  },
});

from src/lib/cookbook.ts:71

  1. fitscore

    How well does this company match a mid-market logistics customer

    • 0poor
    • 1partial
    • 2good
    • 3ideal
  2. urgencyscore

    How soon do they intend to buy

    • 0someday
    • 1this year
    • 2this quarter
    • 3this month
  3. has_budgettrue/false

    Do they state that budget is approved or available?

  4. decision_makertrue/false

    Does the writer appear to be a decision maker rather than a researcher?

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: {
    fit: { type: 'score', instructions: 'How well does this company match a mid-market logistics customer',
      criteria: ['poor', 'partial', 'good', 'ideal'] },
    urgency: { type: 'score', instructions: 'How soon do they intend to buy',
      criteria: ['someday', 'this year', 'this quarter', 'this month'] },
    has_budget: { type: 'boolean', instructions: 'Do they state that budget is approved or available?' },
    decision_maker: { type: 'boolean', instructions: 'Does the writer appear to be a decision maker rather than a researcher?' },
  },
});

from src/lib/cookbook.ts:97

  1. modelchoice

    Pick the most suitable model tier for the latest user turn

    • cheapEveryday Q&A, typo fixes, light rewrites, small talk
    • strongMulti-step reasoning, writing or debugging code, long-document analysis, math
    • noneGreeting or acknowledgement that needs no model at all

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: {
    model: { type: 'choice', instructions: 'Pick the most suitable model tier for the latest user turn',
      criteria: { cheap: 'Everyday Q&A, typo fixes, light rewrites, small talk', strong: 'Multi-step reasoning, writing or debugging code, long-document analysis, math', none: 'Greeting or acknowledgement that needs no model at all' } },
  },
});

Other projects in this category