Agent tooling

JevRouter

@BillionsBobby94TypeScriptMITupdated 2026-09-19runnable

A lightweight Jev-powered router for models, tools, and subagents

BillionsBobby/JevRouter

Where it calls Jev

this.endpoint = options.endpoint ?? "https://api.typesafe.ai/v1/systemone";

src/provider.ts:72

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/primitives.test.ts:61

  1. severityscore

    How severe is this?

    • 0trivial
    • 1minor
    • 2major
    • 3critical
  2. needs_tooltrue/false

    Does handling this require a tool?

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: {
    severity: { type: 'score', instructions: 'How severe is this?',
      criteria: ['trivial', 'minor', 'major', 'critical'] },
    needs_tool: { type: 'boolean', instructions: 'Does handling this require a tool?' },
  },
});

from tests/primitives.test.ts:91

  1. severityscore

    How careful should we be?

    • 0casual
    • 1careful
  2. needs_tooltrue/false

    Is a read needed?

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: {
    severity: { type: 'score', instructions: 'How careful should we be?',
      criteria: ['casual', 'careful'] },
    needs_tool: { type: 'boolean', instructions: 'Is a read needed?' },
  },
});

from tests/primitives.test.ts:111

  1. teamchoice

    Which team should handle this?

    • paymentsbilling and checkout issues
    • frontendbrowser rendering issues

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: {
    team: { type: 'choice', instructions: 'Which team should handle this?',
      criteria: { payments: 'billing and checkout issues', frontend: 'browser rendering issues' } },
  },
});

Other projects in this category