Who it is forA developer whose LangChain app sends every request to one model and needs cheap, bounded routing.
The problemRouting by hand-written rules is brittle, and risky tool calls run without a second check.
The outcomeA pipeline step that picks a route from a fixed set and gates tool calls before they run.
What you need first
- Access to Jev through the TypeSafe early-access entry point at typesafe.ai
- A small labeled sample of your own data to check Jev answers before relying on them
Steps
- Read the TypeSafeClassifier section in the langchain repository at github.com/langchain-ai/langchain.
- Define your routes as a fixed set of Choice options.
- Insert the classifier as a Runnable ahead of the model call and batch questions where the pipeline allows.
- Enable the model-routing and risky-tool middleware for the tools that can change state.
- Test the routing on a labeled set of requests before deploying.
Prompt for your agent
In the langchain repository at github.com/langchain-ai/langchain, wire the TypeSafeClassifier Runnable to route <request type> into the fixed routes <route list>. Report the route chosen for each of twenty labeled requests. Verify that every risky tool call is blocked or flagged by the middleware.
Caveat. The README marks this as a Python integration, so confirm the installed version exposes the classifier before building on it.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cobanov/awesome-jev and "Add typed routing to a LangChain pipeline"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer