Building Production Agents with Jev and LangGraph
Jev, a decision model from TypeSafe AI, returns typed answers with probabilities instead of generated text, and LangGraph orchestrates those cheap, consistent decisions inside deterministic workflows. Code owns the control flow while Jev handles narrow judgments, and LangGraph supplies checkpointing for durable execution, interrupts for human review, and LangSmith tracing. In a legal discovery example, Jev classifies each page for responsiveness, PII and privilege, escalating to an LLM for redaction or to an attorney. It ran 5–6x faster than Sonnet on the classification step, and Browserbase's Stagehand act() median latency fell from 1.97s to 0.46s using a 0.7 confidence fallback to an LLM. The recommended pattern is "cheap by default, frontier on exception."
Related posts
- Jev is now available in LangSmith Evals
LangChain mediumAdeptLangSmith now supports Jev, a TypeSafe AI "System One" model that returns typed answers and probabilities instead of generated text, as a judge for agent evaluations. Jev answers yes/no (noul), choice, and ordered-score questions about a state such as a trace, and it evaluates multiple questions in one parallel call. That makes it cheaper and faster than LLM-as-a-judge for narrow, high-volume decisions like PII leakage or user intent. In one test on one agent, Jev matched a human reviewer on every decision with 92-913x lower variance than GPT and Claude judges, averaging 0.44s and $0.00035 per call. Setup in LangSmith uses the LLM-as-a-Judge evaluator flow with TypeSafe as the provider, a state mapping, and one question per feedback key.
- What Is Jev? A Guide to TypeSafe AI’s System One Model
LangChain mediumAdeptJev, from TypeSafe AI, is a "System One" model that doesn't generate text: it takes a state plus a set of typed questions (choice, score, or yes/no "noul") and returns calibrated probabilities. All questions in a request are evaluated in parallel. TypeSafe reports up to 200x faster inference and 400x lower cost than comparable LLMs on classification tasks. The langchain-typesafe package exposes Jev as TypeSafeClassifier, plus experimental middleware for routing requests between cheap and capable models and for an "Auto Mode" guardrail that blocks risky tool calls before they execute. The practical takeaway is to keep an LLM for open-ended reasoning and generation and use Jev for the fast, structured decisions inside the agent loop.
- Can Jev Be a Better Agent Evaluator?
LangChain mediumAdeptJev, a "System One" model from TypeSafe AI that returns typed answers and probabilities instead of generating text, was tested as an agent evaluator against GPT-5.6 Luna, GPT-5.6 Terra and Claude Sonnet 4.6. The test set was five fixed weather-agent runs built with Deep Agents and stored in LangSmith, each judged 100 times. On binary pass/fail, Jev matched human labels on all 500 decisions, versus 99.8% (Terra), 96.4% (Luna) and 80% (Claude). Its quality-score variance was 92–913x lower than the LLM judges, and it averaged 0.44s and $0.00035 per call, which could make dense online evaluation of production traces affordable. The authors note the test is narrow, LLM judges ran at default sampling settings, and a cheap but consistently wrong judge can spread bad feedback at scale.
- The Art of Loop Engineering
LangChain easyNoviceAgent systems can be structured as four stacked loops: the basic agent loop (model calls tools until done), a verification loop where a deterministic or LLM grader checks output against a rubric and retries with feedback, an event-driven loop where crons, webhooks or Slack channels trigger background runs, and a hill-climbing loop where an analysis agent mines production traces to rewrite prompts, tools or graders. Each level maps to a LangChain primitive (create_agent, RubricMiddleware, LangSmith Deployment triggers or Fleet channels, LangSmith Engine), illustrated with an internal docs-writing agent. Verification trades extra latency and cost for quality, and human-in-the-loop checkpoints are recommended at every level for sensitive actions. The argument is that compounding value lies in the outer event and improvement loops.
- How Podium optimized agent behavior and reduced engineering intervention by 90% with LangSmith
LangChain easyNovicePodium used LangSmith tracing and evaluation to improve its AI Employee agent, which makes 20-30 LLM calls per customer interaction. To fix the agent's failure to recognize when conversations ended, the team curated metadata-enriched datasets from traces and distilled a larger model into a smaller fine-tuned one. Pairwise evaluation showed F1 rising from 91.7% to 98.6%, above their 98% threshold. Giving support staff trace access let them classify issues as application bugs, missing context, misaligned instructions or LLM errors, which cut engineering intervention by 90%.