Skip to content
Try Hanzo
Language: English (United States)

Jev

Typed decisions at POST /v1/decisions.

Context Window
—
In
—per million tokens
Out
—per million tokens

typesafe · starter

Model ID~typesafe/jev-latest

Specifications

Decisions

Architecture
decision
Modalities
decision
Price
—
Model ID
~typesafe/jev-latest

Quick start

~typesafe/jev-latest

—

TypeScript
// npm install hanzoai
import { AiApi, Configuration } from 'hanzoai'
 
const ai = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }))
 
const { data: decision } = await ai.postDecisions({
  aiDecisionsRequest: {
    model: '~typesafe/jev-latest',
    state: { incident: 'checkout 5xx at 14%' },
    questions: {
      severity: {
        type: 'choice',
        instructions: 'How severe is this incident?',
        criteria: {
          low: 'cosmetic or internal; no customer is affected',
          high: 'some customers are blocked from finishing a task',
          critical: 'every customer is blocked and no revenue comes in',
        },
      },
    },
  },
})
 
const { choice, probabilities } = decision.answers.severity
console.log(choice, probabilities)
Get an API key →

Use Jev via Hanzo AI

One API key. One call to POST /v1/decisions.