[PR #4203] [MERGED] docs(deepagents): fix interrupt_on type to include InterruptOnConfig #4192

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/4203
Author: @AdemBoukhris457
Created: 5/29/2026
Status: Merged
Merged: 5/29/2026
Merged by: @npentrel

Base: mainHead: docs/fix-subagent-interrupt-on-type


📝 Commits (5)

  • d941826 docs(deepagents): fix interrupt_on type to include InterruptOnConfig
  • 23b84a6 Apply suggestion from @npentrel
  • 8e78892 Apply suggestion from @npentrel
  • 0166230 Apply suggestion from @npentrel
  • 2f2a3c0 Apply suggestion from @npentrel

📊 Changes

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

View changed files

📝 src/oss/deepagents/subagents.mdx (+10 -4)

📄 Description

Closes #4202

Overview

The SubAgent spec table on the Subagents page documented the interrupt_on field type as dict[str, bool]. The actual type in middleware/subagents.py is dict[str, bool | InterruptOnConfig], where InterruptOnConfig allows per-tool allowed_decisions configuration (e.g., {"allowed_decisions": ["approve", "edit", "reject"]}).

The Human-in-the-loop page already documents this correctly. This PR updates both the Python and JS SubAgent spec tables to match.

Type of change

Type: Fix existing documentation

What changed

In both the Python and JS SubAgent spec tables, updated the interrupt_on row:

  • Type: dict[str, bool]dict[str, bool | InterruptOnConfig]
  • Description: Added that values can be True/False or an InterruptOnConfig with allowed_decisions

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • AI agent was used to assist with this change

🔄 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/4203 **Author:** [@AdemBoukhris457](https://github.com/AdemBoukhris457) **Created:** 5/29/2026 **Status:** ✅ Merged **Merged:** 5/29/2026 **Merged by:** [@npentrel](https://github.com/npentrel) **Base:** `main` ← **Head:** `docs/fix-subagent-interrupt-on-type` --- ### 📝 Commits (5) - [`d941826`](https://github.com/langchain-ai/docs/commit/d941826ce8955e544f1064aa8243ccbec76ee383) docs(deepagents): fix interrupt_on type to include InterruptOnConfig - [`23b84a6`](https://github.com/langchain-ai/docs/commit/23b84a6fbe2d2a0828f484de1120403f4db29573) Apply suggestion from @npentrel - [`8e78892`](https://github.com/langchain-ai/docs/commit/8e78892bf7a4a23330f56b53d323200d0f62f47c) Apply suggestion from @npentrel - [`0166230`](https://github.com/langchain-ai/docs/commit/01662303986b2fd81e4d8a129c1e4efa437106a8) Apply suggestion from @npentrel - [`2f2a3c0`](https://github.com/langchain-ai/docs/commit/2f2a3c0cbfbb5f35f213616ad81059882767a3d7) Apply suggestion from @npentrel ### 📊 Changes **1 file changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/deepagents/subagents.mdx` (+10 -4) </details> ### 📄 Description Closes #4202 ## Overview The SubAgent spec table on the [Subagents page](https://docs.langchain.com/oss/python/deepagents/subagents#subagent-dictionary-based) documented the `interrupt_on` field type as `dict[str, bool]`. The actual type in `middleware/subagents.py` is `dict[str, bool | InterruptOnConfig]`, where `InterruptOnConfig` allows per-tool `allowed_decisions` configuration (e.g., `{"allowed_decisions": ["approve", "edit", "reject"]}`). The [Human-in-the-loop page](https://docs.langchain.com/oss/python/deepagents/human-in-the-loop#basic-configuration) already documents this correctly. This PR updates both the Python and JS SubAgent spec tables to match. ## Type of change **Type:** Fix existing documentation ## What changed In both the Python and JS `SubAgent` spec tables, updated the `interrupt_on` row: - **Type:** `dict[str, bool]` → `dict[str, bool | InterruptOnConfig]` - **Description:** Added that values can be `True`/`False` or an `InterruptOnConfig` with `allowed_decisions` ## Checklist - [x] I have read the contributing guidelines, including the language policy - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed - [x] AI agent was used to assist with this change --- <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:13:05 -04:00
yindo closed this issue 2026-06-05 19:13:05 -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#4192