Skip to content

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

Open
Yuva Prathima Sola (prathima-sola) wants to merge 1 commit into
langchain-ai:mainfrom
prathima-sola:fix/deepagents-interrupt-on-list-to-dict
Open

fix(deepagents): interrupt_on must be a dict, not a list (fault-tolerance.mdx)#4957
Yuva Prathima Sola (prathima-sola) wants to merge 1 commit into
langchain-ai:mainfrom
prathima-sola:fix/deepagents-interrupt-on-list-to-dict

Conversation

@prathima-sola

Copy link
Copy Markdown

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
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.

1 participant