[PR #1087] [MERGED] fix(docs): human-in-the-loop in sql agent tutorial #1284

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/1087
Author: @baihengaead
Created: 10/22/2025
Status: Merged
Merged: 10/24/2025
Merged by: @lnhsingh

Base: mainHead: patch-1


📝 Commits (2)

  • f99f5b2 fix(docs): human-in-the-loop in sql agent tutorial
  • 76b5f14 Merge branch 'main' into patch-1

📊 Changes

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

View changed files

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

📄 Description

Overview

Update the outdated or incorrect sample code related to "human-in-the-loop" in the SQL agent tutorial.

Type of change

Type: Update existing documentation

Description

Update the outdated or incorrect sample code for the 6-implement-human-in-the-loop-review in the SQL agent tutorial document.

1. interrupt related

Original sample code:

...
for request in interrupt.value: 
    print(request["description"])
...

Repaired sample code:

...
for request in interrupt.value["action_requests"]:
    print(request["description"])
...

2. Command related

Original sample code:

for step in agent.stream(
    Command(resume=[{"type": "accept"}]), 
    config,
    stream_mode="values",
):
    ...

Repaired sample code:

for step in agent.stream(
    Command(resume={"decisions": [{"type": "approve"}]}), 
    config,
    stream_mode="values",
):
    ...

🔄 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/1087 **Author:** [@baihengaead](https://github.com/baihengaead) **Created:** 10/22/2025 **Status:** ✅ Merged **Merged:** 10/24/2025 **Merged by:** [@lnhsingh](https://github.com/lnhsingh) **Base:** `main` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`f99f5b2`](https://github.com/langchain-ai/docs/commit/f99f5b2b04c0f2535c6db34cae678cae28ea442f) fix(docs): human-in-the-loop in sql agent tutorial - [`76b5f14`](https://github.com/langchain-ai/docs/commit/76b5f143524b73de5b64b6bb21f9993b290b0a40) Merge branch 'main' into patch-1 ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/sql-agent.mdx` (+3 -3) </details> ### 📄 Description ## Overview Update the outdated or incorrect sample code related to "human-in-the-loop" in the SQL agent tutorial. ## Type of change **Type:** Update existing documentation ## Description Update the outdated or incorrect sample code for the [6-implement-human-in-the-loop-review in the SQL agent tutorial](https://docs.langchain.com/oss/python/langchain/sql-agent#6-implement-human-in-the-loop-review) document. ### 1. `interrupt` related Original sample code: ``` python ... for request in interrupt.value: print(request["description"]) ... ``` Repaired sample code: ``` python ... for request in interrupt.value["action_requests"]: print(request["description"]) ... ``` ### 2. `Command` related Original sample code: ``` python for step in agent.stream( Command(resume=[{"type": "accept"}]), config, stream_mode="values", ): ... ``` Repaired sample code: ``` python for step in agent.stream( Command(resume={"decisions": [{"type": "approve"}]}), config, stream_mode="values", ): ... ``` --- <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:04 -05:00
yindo closed this issue 2026-02-17 17:22:04 -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#1284