Skip to content

Post

Building a Harness with Jev

LangChain's post on putting Jev inside agent loops: it introduces System One models, shows TypeSafeClassifier calls in Python, and demonstrates a model-routing middleware, with tool output kept out of the classifier's input.
Format
Post
Reading time
2 min
Published by
Community
Author
Sydney Runkle and Hunter Lovell
Last verified
Oct 2026

Highlights

  • Walks the agent loop (decide, run a tool, evaluate, repeat) and slots Jev in as the fast typed decision instead of another chat call.
  • Shows the support-ticket example: one Noul question over a state string returns a 99.9% urgency probability your code can act on.
  • Covers Choice, Score, and Noul, and notes System One models evaluate every question in a request in parallel at little extra cost.
  • Install langchain-typesafe, set TYPESAFE_API_KEY, and invoke TypeSafeClassifier with a state and questions to get classifications, not chat text.
  • A ModelRouterMiddleware picks between labelled ModelChoices by criteria, such as openai:luna for lookups and openai:sol for hard decisions.

Quickstart

python
from langchain_typesafe import Noul, TypeSafeClassifier

classifier = TypeSafeClassifier()
response = classifier.invoke({
    'state': 'The deploy failed twice and customers are seeing 500s. Can someone look now?',
    'questions': {'urgent': Noul(instructions='Does this need attention right now?')},
})

urgency = response.nouls['urgent'].noul

Watch out

Grounded in the truncated blog capture and the madewithjev listing description reviewed on 2026-10-15; the post's auto-mode section is cut off mid-sentence, the tool-call-gate detail comes from the listing text, and the 200x speed and 400x cost figures are attributed to TypeSafe AI, not independent tests.

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