Skip to content

docs: fix interrupt handling example in SQL agent tutorial#3580

Merged
Naomi Pentrel (npentrel) merged 2 commits intolangchain-ai:mainfrom
monish-rgb:main
Apr 14, 2026
Merged

docs: fix interrupt handling example in SQL agent tutorial#3580
Naomi Pentrel (npentrel) merged 2 commits intolangchain-ai:mainfrom
monish-rgb:main

Conversation

@monish-rgb
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Monish Devineni (@monish-rgb)! When it's ready for review, please add the relevant reviewers:

  • @npentrel or @lnhsingh (LangChain)

@github-actions github-actions bot added external User is not a member of langchain-ai langchain For docs changes to LangChain oss labels Apr 14, 2026
@monish-rgb
Copy link
Copy Markdown
Contributor Author

Hi Naomi Pentrel (@npentrel), pull request is ready for review. It fixes issue #3208 by updating the SQL agent tutorial example from 'elif' to 'if'

Copy link
Copy Markdown
Contributor

@npentrel Naomi Pentrel (npentrel) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@npentrel Naomi Pentrel (npentrel) merged commit 2c1d463 into langchain-ai:main Apr 14, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc bug: a code problem in official tutorial

2 participants