[PR #1528] [MERGED] fix(langchain): update toolCallRetry and add modelRetry middleware #1619

Closed
opened 2026-02-17 17:22:33 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1528
Author: @christian-bromann
Created: 11/19/2025
Status: Merged
Merged: 11/22/2025
Merged by: @sydney-runkle

Base: mainHead: cb/modelRetryMiddleware


📝 Commits (2)

  • ba5281b fix(langchain): update toolCallRetry and add modelRetry middleware
  • c4234d0 update references

📊 Changes

2 files changed (+286 additions, -6 deletions)

View changed files

📝 pipeline/preprocessors/link_map.py (+2 -0)
📝 src/oss/langchain/middleware/built-in.mdx (+284 -6)

📄 Description

Updates middleware documentation to reflect changes from:

which adds modelRetryMiddleware and updates toolRetryMiddleware API.

Changes

New: Model Retry Middleware Documentation

  • Added comprehensive documentation for modelRetryMiddleware (JavaScript) and ModelRetryMiddleware (Python)
  • Includes configuration options, examples, and use cases
  • Covers retry strategies, exponential backoff, custom exception filtering, and failure handling
  • Added to middleware tables for both Python and JavaScript

Updated: Tool Retry Middleware Documentation

  • Updated onFailure parameter documentation to reflect API changes:
    • 'raise''error' (deprecated, still supported with warning)
    • 'return_message''continue' (deprecated, still supported with warning)
  • Updated all examples to use new parameter values
  • Added deprecation notices for old values

⚠️ this should be merged as part of v1.1 release


🔄 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/1528 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/22/2025 **Merged by:** [@sydney-runkle](https://github.com/sydney-runkle) **Base:** `main` ← **Head:** `cb/modelRetryMiddleware` --- ### 📝 Commits (2) - [`ba5281b`](https://github.com/langchain-ai/docs/commit/ba5281b55e73f48f73324a6051c90795e92bb79b) fix(langchain): update toolCallRetry and add modelRetry middleware - [`c4234d0`](https://github.com/langchain-ai/docs/commit/c4234d09ac9c3f71918d73f3e6c7bef94ef4146c) update references ### 📊 Changes **2 files changed** (+286 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `pipeline/preprocessors/link_map.py` (+2 -0) 📝 `src/oss/langchain/middleware/built-in.mdx` (+284 -6) </details> ### 📄 Description Updates middleware documentation to reflect changes from: - https://github.com/langchain-ai/langchainjs/pull/9454 - https://github.com/langchain-ai/langchain/pull/34027 which adds `modelRetryMiddleware` and updates `toolRetryMiddleware` API. ## Changes ### New: Model Retry Middleware Documentation - Added comprehensive documentation for `modelRetryMiddleware` (JavaScript) and `ModelRetryMiddleware` (Python) - Includes configuration options, examples, and use cases - Covers retry strategies, exponential backoff, custom exception filtering, and failure handling - Added to middleware tables for both Python and JavaScript ### Updated: Tool Retry Middleware Documentation - Updated `onFailure` parameter documentation to reflect API changes: - `'raise'` → `'error'` (deprecated, still supported with warning) - `'return_message'` → `'continue'` (deprecated, still supported with warning) - Updated all examples to use new parameter values - Added deprecation notices for old values ⚠️ this should be merged as part of v1.1 release --- <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-02-17 17:22:33 -05:00
yindo closed this issue 2026-02-17 17:22:33 -05:00
yindo changed title from [PR #1528] fix(langchain): update toolCallRetry and add modelRetry middleware to [PR #1528] [MERGED] fix(langchain): update toolCallRetry and add modelRetry middleware 2026-06-05 18:13:58 -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#1619