[PR #938] [MERGED] Update middleware.mdx #1160

Closed
opened 2026-02-17 17:21:50 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/938
Author: @gsmini
Created: 10/15/2025
Status: Merged
Merged: 10/17/2025
Merged by: @mdrxy

Base: mainHead: patch-6


📝 Commits (3)

  • 7189227 Update middleware.mdx
  • aa873c1 Merge branch 'main' into patch-6
  • 581f119 Merge branch 'main' into patch-6

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 src/oss/langchain/middleware.mdx (+4 -2)

📄 Description

  1. Human-in-the-loop middleware need checkpointer to keep short-term conversation ,so i add InMemorySaver
  2. interrupt_on param should be tool func name we defined, or interrupt_on do not work(agent will always call tool func) but not return a __interrupt__ field in invoke response messages(https://docs.langchain.com/oss/python/langchain/human-in-the-loop#responding-to-interrupts)

🔄 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/938 **Author:** [@gsmini](https://github.com/gsmini) **Created:** 10/15/2025 **Status:** ✅ Merged **Merged:** 10/17/2025 **Merged by:** [@mdrxy](https://github.com/mdrxy) **Base:** `main` ← **Head:** `patch-6` --- ### 📝 Commits (3) - [`7189227`](https://github.com/langchain-ai/docs/commit/71892270f7a39569182f3cb8ca3196908bc7a2e8) Update middleware.mdx - [`aa873c1`](https://github.com/langchain-ai/docs/commit/aa873c18629ef0b4415ad2a50c4640c0bb40ed21) Merge branch 'main' into patch-6 - [`581f119`](https://github.com/langchain-ai/docs/commit/581f1191d3409aabd451e243e1453882e8f47473) Merge branch 'main' into patch-6 ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/middleware.mdx` (+4 -2) </details> ### 📄 Description 1. Human-in-the-loop middleware need checkpointer to keep short-term conversation ,so i add `InMemorySaver ` 2. `interrupt_on` param should be tool func name we defined, or `interrupt_on` do not work(agent will always call tool func) but not return a `__interrupt__` field in `invoke `response messages(https://docs.langchain.com/oss/python/langchain/human-in-the-loop#responding-to-interrupts) --- <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:21:50 -05:00
yindo closed this issue 2026-02-17 17:21:50 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#1160