docs: document overriding default middleware by name#4701
Merged
Nishitha M (imnishitha) merged 14 commits intoJul 7, 2026
Conversation
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
…ubagents Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
Contributor
|
Thanks for opening a docs PR, Nishitha M (@imnishitha)! When it's ready for review, please add the relevant reviewers:
|
Contributor
|
mostly phrasing changes: I found some sentences hard to follow. The Accorrdion has to entirely be in the python flag otherwise we'll have an empty accordion for javascript |
Naomi Pentrel (npentrel)
approved these changes
Jul 6, 2026
ccurme (ccurme)
approved these changes
Jul 7, 2026
Co-authored-by: ccurme <chester.curme@gmail.com>
Contributor
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-opensw-1783454697-4d4e2b4.mintlify.app Important Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
1 task
Lauren Hirata Singh (lnhsingh)
added a commit
that referenced
this pull request
Jul 7, 2026
## Description Adds a single consolidated changelog entry for the `deepagents` 0.7.0 alpha releases, covering the `delete` filesystem tool, `write_file` overwrite behavior, default middleware override by name, and the `FilesystemMiddleware` tools allowlist (already documented in #4746, #4680, #4701). Individual alpha versions (a1, a2, ...) are not called out separately. ## Test Plan - [ ] `npx markdownlint-cli src/oss/python/releases/changelog.mdx` — no new lint errors introduced by this change _Opened collaboratively by Nishitha Madhu and open-swe_ --------- Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> Co-authored-by: Lauren Hirata Singh <lauren@langchain.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Depends on:
Documents two related Python deepagents behaviors:
middleware=(or SubAgent's middleware) instance whose.namematches a default replaces that default in place instead of erroring on duplicate middleware. Updates the default middleware stack, themiddleware=table row, and theSubAgent.middlewarefield description, and adds a new "Override a default middleware instance" section with an example.FilesystemMiddlewarefor enabling or disabling individual built-in filesystem tools (ls, read_file, write_file, edit_file, delete, glob, grep, execute), which relies on the middleware-override behavior above to swap in a restrictedFilesystemMiddlewareinstance. Adds a "Restricting filesystem tools" example.Scoped to Python docs only (:::python fences), since both changes only shipped in the Python SDK.
Test Plan
Opened collaboratively by Nishitha Madhu and open-swe