Skip to content

LangChain 1.5 drops Python 3.10, adds a model router

LangChain 1.5.0 ships ModelRouterMiddleware for picking a model per run and AutoModeMiddleware for vetoing risky tool calls, both in beta.

LangChain released version 1.5.0 of its open-source agent framework on 11 November. The update requires Python 3.11 or later, dropping support for Python 3.10, and ships alongside langchain-core 1.8.

The headline addition is ModelRouterMiddleware, a decision-driven middleware, currently in beta, that picks which model to call for each run from a set of configured choices and instructions. A companion, AutoModeMiddleware, classifies configured tool calls and blocks the ones it judges risky before they run.

Why it matters: most agent code today hardcodes one model per call site. Pushing that choice into middleware means you can route simple steps to a cheap model and hard ones to a frontier model without restructuring the agent, and get an automatic veto on risky tool calls instead of relying only on a human reviewer.

The caveat: both middlewares ship in beta, so expect their interfaces to change before LangChain marks them stable.

Share

Related reading

More from The Wire

All briefs