LangChain Adds Jev Classifier to Agent Workflows for Routing and Tool Checks
The integration puts a model built for typed decisions beside a conventional language model, including an experimental gate that can stop selected tool calls before they run.
Listen to this story
The audio brief
Story brief
3 key pointsLangChain has integrated TypeSafe’s Jev classifier into agent workflows, giving developers a separate system for bounded decisions instead of using a generative model for every step. Jev returns typed choices, scores, and truth probabilities, enabling model routing, state evaluation, and pre-execution tool checks. LangChain’s experimental AutoModeMiddleware can block risky calls, including shell commands. TypeSafe...
- 01
Jev evaluates multiple questions about the same agent state in parallel through LangChain’s TypeSafeClassifier integration.
- 02
The classifier supports categorical choices, ordered scores, and yes-or-no answers with probabilities.
- 03
AutoModeMiddleware can inspect and block configured tool calls before execution, including shell tools.
LangChain has added TypeSafe’s Jev to the machinery around an AI agent’s main language model. Instead of asking a chat model to make every small judgment, developers can use Jev for structured choices such as routing a task, judging urgency, or checking a tool call before it executes.
The new TypeSafeClassifier integration lets an agent application submit its current state and a defined set of questions through an invoke call. It returns classification results rather than another chat response, placing Jev in the repeated decision points that surround an agent’s open-ended reasoning and generation.
A new model gets a place in the loop
Jev is not a traditional large language model, according to LangChain. It does not generate text. Instead, it evaluates a supplied state and returns typed answers and probabilities that software can use to decide the next step.
The supported question types cover a choice among options, an ordered score, and a yes-or-no answer that returns the probability a statement is true. LangChain says multiple questions about the same state can be evaluated in parallel.
The classifier handles bounded questions
The division of labor is deliberate. LangChain presents Jev as a complement to the model driving an agent: the language model still handles open-ended reasoning and writing, while Jev handles classification tasks along the way. One proposed use is model routing, where a request can be sent to the least costly model that meets criteria defined by the developer.
Where LangChain positions Jev
- Route a task to a model selected against developer-defined criteria.
- Evaluate agent state through typed choices, scores, or yes-or-no probabilities.
- Check selected tool calls before the tool executes.
The integration can also sit in middleware, software that runs around an agent’s core work. LangChain’s experimental AutoModeMiddleware uses Jev to examine tool calls for risky decisions and can block calls before the tool runs, including configured shell tools. That makes the classifier a proposed action gate, not merely a way to organize prompts.
Speed claims meet a practical test
The appeal is partly economic. LangChain relays TypeSafe’s claim that Jev can offer up to 200 times faster inference and 400 times lower cost than comparable language models on classification tasks. Those are TypeSafe’s reported figures, and they describe a narrower job than generating a full response.
The next move is less about replacing a model than deciding which decisions deserve a dedicated one. Developers can now put Jev beside an existing LangChain agent for routing, evaluation, or tool-call checks. Whether that split produces better operational choices will depend on how the classifier performs against the criteria each application defines.
Sources
- langchain.comWhat Is Jev? A Guide to TypeSafe AI’s System One Model
Loading discussion...
Reader comments
Newest comments first. Replies stay oldest first.