[PR #3490] [MERGED] docs: add langchain-router to community middleware #3536

Closed
opened 2026-06-05 18:23:25 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3490
Author: @johanity
Created: 4/7/2026
Status: Merged
Merged: 4/12/2026
Merged by: @mdrxy

Base: mainHead: add-langchain-router


📝 Commits (3)

  • 5a521c1 docs: add langchain-router to community middleware
  • 2a48e3f Merge branch 'main' into add-langchain-router
  • beb9edb Merge branch 'main' into add-langchain-router

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 src/oss/python/integrations/middleware/index.mdx (+1 -0)

📄 Description

Adds langchain-router to the community middleware integrations table.

What it does

Phase-based model routing middleware for create_agent. Detects whether the agent is planning, executing, or recovering and routes execution turns to a fast model. The primary model is used for planning and error recovery.

  • 83% of calls route to the fast model on a typical coding session
  • Up to 82% cost reduction per session (Opus → MiniMax)
  • Stateless, no ML, composes with CollapseMiddleware
  • PyPI · Source · CI

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/docs/pull/3490 **Author:** [@johanity](https://github.com/johanity) **Created:** 4/7/2026 **Status:** ✅ Merged **Merged:** 4/12/2026 **Merged by:** [@mdrxy](https://github.com/mdrxy) **Base:** `main` ← **Head:** `add-langchain-router` --- ### 📝 Commits (3) - [`5a521c1`](https://github.com/langchain-ai/docs/commit/5a521c1293c7cf7d4e41e3eb197ad72b43b39b7a) docs: add langchain-router to community middleware - [`2a48e3f`](https://github.com/langchain-ai/docs/commit/2a48e3f111135f82d1d3a23370828659906f9e61) Merge branch 'main' into add-langchain-router - [`beb9edb`](https://github.com/langchain-ai/docs/commit/beb9edbc0d9b90e375801837b9ca150b0026c59a) Merge branch 'main' into add-langchain-router ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/python/integrations/middleware/index.mdx` (+1 -0) </details> ### 📄 Description Adds [langchain-router](https://github.com/johanity/langchain-router) to the community middleware integrations table. ## What it does Phase-based model routing middleware for `create_agent`. Detects whether the agent is planning, executing, or recovering and routes execution turns to a fast model. The primary model is used for planning and error recovery. - 83% of calls route to the fast model on a typical coding session - Up to 82% cost reduction per session (Opus → MiniMax) - Stateless, no ML, composes with CollapseMiddleware - [PyPI](https://pypi.org/project/langchain-router/) · [Source](https://github.com/johanity/langchain-router) · [CI](https://github.com/johanity/langchain-router/actions) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 18:23:25 -04:00
yindo closed this issue 2026-06-05 18:23:25 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3536