kelvinmade✳Independent maker ↗
JEV USE CASE

Real-Time Game Decisions.

Select movement, targets or tactical modes from live game state without waiting for a generative response.

THE DECISION CONTRACT
STATE

Player health 18%, enemy distance 3 tiles, healing item available, exit 5 tiles north.

QUESTION

Which tactical mode should the character enter?

CHOICES

fight heal flee loot explore

TYPESCRIPT EXAMPLE

Ask for one bounded answer

This Vercel AI SDK-shaped example is illustrative. Check the current provider documentation before shipping.

import { experimental_evaluate as evaluate } from 'ai';

const result = await evaluate({
  model: 'typesafe-ai/jev',
  state: "Player health 18%, enemy distance 3 tiles, healing item available, exit 5 tiles north.",
  questions: {
    decision: {
      type: 'choice',
      instructions: "Which tactical mode should the character enter?",
      options: ["fight","heal","flee","loot","explore"]
    }
  }
});

// Validate permissions and thresholds before acting.
console.log(result.answers.decision);
SAFE IMPLEMENTATION

Keep the boundary clear

Guardrail

Keep physics, collision, inventory validity and safety-critical reflexes in the game engine.

  • Log the input, answer distribution, chosen threshold and resulting route.
  • Test on labelled examples from your own production distribution.
  • Send low-confidence, high-impact or out-of-distribution cases to a safer fallback.
  • Re-evaluate thresholds when the model or workflow changes.
PRIMARY SOURCES

Read before implementing

TypeSafe AI: Introducing System One Models and Jev ↗

Vercel: Jev available on AI Gateway ↗