Skip to content

Jev directory

Intent Routing with TypeSafe's JEV Model

Python intent classification for customer support: Jev picks from twelve intents and returns a confidence score plus a per-intent probability distribution, flagging anything below 0.8 confidence as needing clarification while routing stays configurable downstream.
Stars
1
Language
Python
Reading time
2 min
Published by
Community
Author
viniciusfinger
Last verified
Oct 2026

Highlights

  • Twelve intents from order_status, delivery_tracking and payment_refund to return_request, product_availability and unknown.
  • Returns intent, confidence 0.0-1.0, a requires_clarification flag below 0.8 confidence, and a probability per intent for fallback logic.
  • Uses Choice questions with criteria through the typesafe-sdk and a single-step classification call.
  • Multi-turn context: prior turns pass as history to disambiguate short follow-ups, and only the latest message is classified.
  • The architecture runs main.py to IntentClassifier.classify to TypeSafeClient.system_one, with the model reached via the OpenRouter API.

Quickstart

python
history = [
    Turn(role="user", content="My package was supposed to arrive yesterday."),
    Turn(role="assistant", content="Sorry about that! How can I help?"),
]
classifier.classify("I just want my money back", history=history)

Watch out

Copy reviewed against the repo README on 2026-10-15; the README is truncated in the digest inside its .env example and publishes no accuracy benchmarks. The model path is named as OpenRouter in the architecture and topics, and the repo provides no routing rules of its own — it returns probabilities for downstream systems.

Questions about this entry

Short answers drawn from the linked project or page.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai