Getting Started with Jev

Last updated:

Prerequisites

  1. TypeSafe AI waitlist account
  2. Valid API key
  3. Python 3.11+ (examples) or plain HTTP

Steps

  1. Obtain an API key from the TypeSafe dashboard.
  2. Install the official client when available, or call the REST API.
  3. Send a choice decision with context + options.
  4. Read answer / probabilities.
  5. Handle schema errors and anomalous latency (>500ms).

Example — email classification

from typesafe import Jev  # illustrative — confirm docs.typesafe.ai

jev = Jev(api_key="...")

result = jev.decide(
    context="Email: 'Your order has shipped!'",
    question="What type of email is this?",
    choices=["transactional", "marketing", "support", "spam"],
)
# {"choice": "transactional", "confidence": 0.94}

Community demo metrics (~1,500 emails): ~200ms/classification, ~1.1M tokens, ~$0.046 total.