Guardrails & review

actiongate-jev

@omkarghugarkar0072TypeScriptApache-2.0updated 2026-09-19runnable

Runtime authorization and guardrails for AI-agent tool calls with deterministic policy and TypeSafe Jev via OpenRouter.

omkarghugarkar007/actiongate-jev

Where it calls Jev

JEV_MODEL: z.string().default("typesafe/jev-1.13"),

apps/api/src/config.ts:11

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 packages/decision-provider/test/openrouter.live.test.ts:12

  1. wants_refundtrue/false

    Does the user explicitly request a refund?

  2. intentchoice

    What is the requested outcome?

    • refundRefund a charge
    • explainExplain a charge

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: {
    wants_refund: { type: 'boolean', instructions: 'Does the user explicitly request a refund?' },
    intent: { type: 'choice', instructions: 'What is the requested outcome?',
      criteria: { refund: 'Refund a charge', explain: 'Explain a charge' } },
  },
});

Other projects in this category