docs: add docs for providerToolSearchMiddleware#4355
Conversation
|
Thanks for opening a docs PR, Alexander Olsen (@aolsenjazz)! When it's ready for review, please add the relevant reviewers:
|
Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
❌ Import check failedThis PR contains imports from Detailed issuesWhy this is a problemThe
How to fixReplace the imports as suggested above. For example:
🤖 Automated checkThis check is based on the latest analysis of |
[Docs](langchain-ai/docs#4355) Adds `ProviderToolSearchMiddleware` to let agents defer selected tools behind OpenAI/Anthropic provider-native tool search while preserving existing `extras={"defer_loading": True}` behavior. The middleware validates searchable tool names, injects the provider search tool only when a tool is deferred, and rejects unsupported providers up front. Made by [Open SWE](https://openswe.vercel.app) --------- Co-authored-by: Alexander Olsen <13665641+aolsenjazz@users.noreply.github.com> Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> Co-authored-by: Mason Daugherty <github@mdrxy.com> Co-authored-by: Mason Daugherty <mason@langchain.dev>
|
Mintlify preview branch generated: Site preview: https://langchain-5e9cc07a-preview-alexpr-1781114723-5d436be.mintlify.app Important Preview links may take a few minutes to start working while the deployment finishes. Changed documentation pages (preview deep links): |
| </Accordion> | ||
|
|
||
| :::python | ||
| ### Provider tool search |
There was a problem hiding this comment.
ideally this would be outside of these blocks so that it's always the same heading.
Overview
Documents the new providerToolSearchMiddleware on the prebuilt middleware page. Adds a JS-only "Provider tool search" section plus a JS middleware-table entry, and registers the providerToolSearchMiddleware symbol in link_map.py.
Type of change
Type: Update existing documentation
Related issues/PRs
ProviderToolSearchMiddlewarelangchain#37969Checklist
docs devsrc/docs.jsonif neededAdditional notes