[PR #3580] [MERGED] docs: fix interrupt handling example in SQL agent tutorial #3622

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3580
Author: @monish-rgb
Created: 4/14/2026
Status: Merged
Merged: 4/14/2026
Merged by: @npentrel

Base: mainHead: main


📝 Commits (2)

📊 Changes

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

View changed files

📝 src/oss/langchain/sql-agent.mdx (+1 -1)

📄 Description

Summary

Fixes the interrupt-handling example in the SQL agent tutorial.

Changes

  • Replaced elif "__interrupt__" in step: with if "__interrupt__" in step:
  • Preserved the rest of the example logic

Why

When a step contains both "messages" and "__interrupt__", the previous elif branch can skip interrupt handling. This update matches the issue report and makes the example work correctly for multiple interruptions.

Fixes #3208


🔄 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/3580 **Author:** [@monish-rgb](https://github.com/monish-rgb) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/14/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`1c89db8`](https://github.com/langchain-ai/docs/commit/1c89db896b78b21738e448e6ff8e8e93db31e8a0) docs: fix interrupt handling example in SQL agent tutorial - [`46e3889`](https://github.com/langchain-ai/docs/commit/46e38895020b5be240486719b892e91cd89f5c9d) Merge branch 'main' of https://github.com/monish-rgb/docs ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/sql-agent.mdx` (+1 -1) </details> ### 📄 Description ## Summary Fixes the interrupt-handling example in the SQL agent tutorial. ## Changes - Replaced `elif "__interrupt__" in step:` with `if "__interrupt__" in step:` - Preserved the rest of the example logic ## Why When a step contains both `"messages"` and `"__interrupt__"`, the previous `elif` branch can skip interrupt handling. This update matches the issue report and makes the example work correctly for multiple interruptions. Fixes #3208 --- <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:42 -04:00
yindo closed this issue 2026-06-05 18:23:42 -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#3622