[PR #4078] [MERGED] Update LangGraph interrupts docs to use stream mode v2 typed output #4079

Closed
opened 2026-06-05 19:12:41 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4078
Author: @langsmith-fleet[bot]
Created: 5/19/2026
Status: Merged
Merged: 5/19/2026
Merged by: @sydney-runkle

Base: mainHead: docs/update-langgraph-interrupts-stream-v2


📝 Commits (1)

  • cb6835c Update LangGraph interrupts docs to use stream mode v2 typed output

📊 Changes

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

View changed files

📝 src/oss/langgraph/interrupts.mdx (+35 -33)

📄 Description

Summary

  • Updated the ### Handling multiple interrupts section (the primary URL called out) to use version="v2" in graph.invoke(), showing typed GraphOutput with .interrupts instead of the old __interrupt__ dict key
  • Updated all other Python full examples in the interrupts page (approve/reject, review & edit, interrupts in tools, validating human input) to consistently use version="v2" and typed output
  • Updated inline node comments that referenced result["__interrupt__"] to reflect the v2 .interrupts attribute

The Linear issue (DOC-1143) also tracks a broader audit of all LangGraph docs to ensure stream_mode="v2" is used consistently.

Links

Verification

Not run; docs-only copy change.

Reviewers

Requested review from: @npentrel, @lnhsingh


🔄 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/4078 **Author:** [@langsmith-fleet[bot]](https://github.com/apps/langsmith-fleet) **Created:** 5/19/2026 **Status:** ✅ Merged **Merged:** 5/19/2026 **Merged by:** [@sydney-runkle](https://github.com/sydney-runkle) **Base:** `main` ← **Head:** `docs/update-langgraph-interrupts-stream-v2` --- ### 📝 Commits (1) - [`cb6835c`](https://github.com/langchain-ai/docs/commit/cb6835cbbbacb174d241b2347ee775bed6ed056e) Update LangGraph interrupts docs to use stream mode v2 typed output ### 📊 Changes **1 file changed** (+35 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langgraph/interrupts.mdx` (+35 -33) </details> ### 📄 Description ## Summary - Updated the `### Handling multiple interrupts` section (the primary URL called out) to use `version="v2"` in `graph.invoke()`, showing typed `GraphOutput` with `.interrupts` instead of the old `__interrupt__` dict key - Updated all other Python full examples in the interrupts page (approve/reject, review & edit, interrupts in tools, validating human input) to consistently use `version="v2"` and typed output - Updated inline node comments that referenced `result["__interrupt__"]` to reflect the v2 `.interrupts` attribute The Linear issue (DOC-1143) also tracks a broader audit of all LangGraph docs to ensure `stream_mode="v2"` is used consistently. ## Links - Linear: https://linear.app/langchain/issue/DOC-1143/audit-langgraph-docs-to-use-stream-modev2-for-typed-interrupt-output - Slack: https://langchain.slack.com/archives/C09G1T60QV9/p1779220378756479 ## Verification Not run; docs-only copy change. ## Reviewers Requested review from: @npentrel, @lnhsingh --- <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 19:12:41 -04:00
yindo closed this issue 2026-06-05 19:12:41 -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#4079