Getting Started with Jev
Prerequisites
- TypeSafe AI waitlist account
- Valid API key
- Python 3.11+ (examples) or plain HTTP
Steps
- Obtain an API key from the TypeSafe dashboard.
- Install the official client when available, or call the REST API.
- Send a
choicedecision with context + options. - Read
answer/probabilities. - 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.
