Skip to content

fix(deepagents): interrupt_on must be a dict, not a list (fault-tolerance.mdx) - #4957

Merged
Naomi Pentrel (npentrel) merged 1 commit into
langchain-ai:mainfrom
prathima-sola:fix/deepagents-interrupt-on-list-to-dict
Jul 26, 2026
Merged

fix(deepagents): interrupt_on must be a dict, not a list (fault-tolerance.mdx)#4957
Naomi Pentrel (npentrel) merged 1 commit into
langchain-ai:mainfrom
prathima-sola:fix/deepagents-interrupt-on-list-to-dict

Conversation

@prathima-sola

Copy link
Copy Markdown
Contributor

Overview

interrupt_on in the "User-fixable" fault-tolerance example is passed as a list:

interrupt_on=["send_email", "delete_record"]

but create_deep_agent's real signature takes a dict:

interrupt_on: dict[str, bool | InterruptOnConfig] | None = None

Reproduced with the exact snippet (real tools standing in for
send_email_tool/delete_record_tool):

ValueError: dictionary update sequence element #0 has length 10;
2 is required

The error gives no indication the actual problem is list-vs-dict, so
anyone copying this snippet hits a confusing failure with no fix path.
Same bug appears in the TypeScript block right below it
(interruptOn: [...]).

Fixed both to the dict form used everywhere else in the docs, and
verified the corrected version constructs the agent with no error.

Type of change

Type: Fix typo/bug/link/formatting

Related issues/PRs

None.

@github-actions github-actions Bot added deepagents For docs changes to Deep Agents oss labels Jul 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for opening a docs PR, Yuva Prathima Sola (@prathima-sola)! When it's ready for review, please add the relevant reviewers:

  • @npentrel or @lnhsingh (Deep Agents)

@github-actions github-actions Bot added the external User is not a member of langchain-ai label Jul 18, 2026

@npentrel Naomi Pentrel (npentrel) left a comment

Copy link
Copy Markdown
Contributor

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 1f90089 into langchain-ai:main Jul 26, 2026
20 checks passed
Mason Daugherty (mdrxy) added a commit that referenced this pull request Aug 27, 2026
**Description:** Update approval-modes and goals-and-rubrics to current
deepagents-code behavior: Auto GA without experimental gate (0.1.46),
YOLO in the Shift+Tab cycle with `startup.yolo_switcher` opt-out
(0.1.47), `[startup].recent` mode persistence (0.1.60), headless
`-y`/`--yolo` warn-and-ignore (0.1.61), and `goals.auto_accept_criteria`
(0.1.46).
**Release Note:** Docs refreshed for approval modes and goal criteria
auto-accept; the pages were stale on Auto's GA status and mode cycling.
References langchain-ai/deepagents releases/issues #4957, #5035, #5665,
#5750, #4940. Also reflects current `main`: `Shift+Tab` is the
approval-mode cycle, and Auto permits ordinary instrumental steps while
keeping high-risk effects explicitly gated.
**Test Plan:** Verified every claim against deepagents main source
(`approval_mode.py`, `config_manifest.py`, `model_config.py`, `main.py`,
`app.py`) and CHANGELOG; `make lint_prose` passes on both changed files.

## Stack

This is stack 2/4 and targets #5694
(`mdrxy/docs/dcode-configuration-backfill`).

Made by [Open
SWE](https://openswe.vercel.app/agents/0b56e89b-6aef-557e-9697-924077253ea3)

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepagents For docs changes to Deep Agents external User is not a member of langchain-ai oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants