[PR #58] [MERGED] feat: interrupt config #433

Closed
opened 2026-02-16 09:16:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagents/pull/58
Author: @Palashio
Created: 8/19/2025
Status: Merged
Merged: 8/22/2025
Merged by: @hwchase17

Base: masterHead: palash/add-interrupt


📝 Commits (10+)

  • 7305a40 feat: add off the shelf interrupt config
  • bea7c2c fix: pass down the state schema to the general purpose agent
  • a7dfea8 Merge branch 'master' into palash/add-interrupt
  • f2c34ce chore: remove example file
  • b289768 feat: add post model hook
  • ad71df6 feat: use the human interrupt config
  • bd00480 fix: always show tool call args
  • a4bda12 chore: remove comment
  • bcb1719 feat: unify the post_model_hook and interrupt
  • 7fd8951 feat: use standard configs through dict mapping

📊 Changes

4 files changed (+152 additions, -3 deletions)

View changed files

📝 README.md (+33 -1)
📝 src/deepagents/__init__.py (+1 -0)
📝 src/deepagents/graph.py (+22 -2)
src/deepagents/interrupt.py (+96 -0)

📄 Description

This PR does two things:

  • passes down the state_schema to the general purpose agent. currently, the state schema was only being passed to subagents and not the general purpose agent
  • adds interrupt config with usage as seen below
  • creates ability to specify human interrupt config's separately for each tool call
  # Using custom configs
  agent = create_deep_agent(
      tools=[...],
      instructions="...",
      interrupt_config={
          "custom_tool": HumanInterruptConfig(
              allow_ignore=True,
              allow_respond=False,
              allow_edit=True,
              allow_accept=True,
          )
      }
  )

``

---

<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagents/pull/58 **Author:** [@Palashio](https://github.com/Palashio) **Created:** 8/19/2025 **Status:** ✅ Merged **Merged:** 8/22/2025 **Merged by:** [@hwchase17](https://github.com/hwchase17) **Base:** `master` ← **Head:** `palash/add-interrupt` --- ### 📝 Commits (10+) - [`7305a40`](https://github.com/langchain-ai/deepagents/commit/7305a4072083c0732f580ff35de61ad306507a1c) feat: add off the shelf interrupt config - [`bea7c2c`](https://github.com/langchain-ai/deepagents/commit/bea7c2ca217fbb17ee2620f0ae0d2e8fed4bbf56) fix: pass down the state schema to the general purpose agent - [`a7dfea8`](https://github.com/langchain-ai/deepagents/commit/a7dfea8e9ee6404d914f1bcfe036a03e4bcf88f0) Merge branch 'master' into palash/add-interrupt - [`f2c34ce`](https://github.com/langchain-ai/deepagents/commit/f2c34cef6782ef83601aa9798d25eb39b26f008b) chore: remove example file - [`b289768`](https://github.com/langchain-ai/deepagents/commit/b2897687a5890e64c7627e75a5e95da24921911e) feat: add post model hook - [`ad71df6`](https://github.com/langchain-ai/deepagents/commit/ad71df6a483dd20ecd1bad2d33727a22aee2bffe) feat: use the human interrupt config - [`bd00480`](https://github.com/langchain-ai/deepagents/commit/bd00480bd54c70a72506e0a89ae1f28710a3bf2c) fix: always show tool call args - [`a4bda12`](https://github.com/langchain-ai/deepagents/commit/a4bda1284cd2e864c9bc989d43e346b5bd0eff15) chore: remove comment - [`bcb1719`](https://github.com/langchain-ai/deepagents/commit/bcb17190f732ffe3cfdde0eb497cb2ff231d63eb) feat: unify the post_model_hook and interrupt - [`7fd8951`](https://github.com/langchain-ai/deepagents/commit/7fd895135f3bddb3114aef60da7481ad1ee8a854) feat: use standard configs through dict mapping ### 📊 Changes **4 files changed** (+152 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+33 -1) 📝 `src/deepagents/__init__.py` (+1 -0) 📝 `src/deepagents/graph.py` (+22 -2) ➕ `src/deepagents/interrupt.py` (+96 -0) </details> ### 📄 Description This PR does two things: - passes down the `state_schema` to the general purpose agent. currently, the state schema was only being passed to subagents and not the general purpose agent - adds interrupt config with usage as seen below - creates ability to specify human interrupt config's separately for each tool call ``` # Using custom configs agent = create_deep_agent( tools=[...], instructions="...", interrupt_config={ "custom_tool": HumanInterruptConfig( allow_ignore=True, allow_respond=False, allow_edit=True, allow_accept=True, ) } ) `` --- <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-16 09:16:00 -05:00
yindo closed this issue 2026-02-16 09:16:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagents#433