Skip to content

docs: add dynamic tool tradeoffs for cache and model behavior [closes DOC-991]#3572

Draft
open-swe[bot] wants to merge 3 commits intomainfrom
open-swe/8d7b0026-5bc3-e1cf-bdfe-7b24d78c54d2
Draft

docs: add dynamic tool tradeoffs for cache and model behavior [closes DOC-991]#3572
open-swe[bot] wants to merge 3 commits intomainfrom
open-swe/8d7b0026-5bc3-e1cf-bdfe-7b24d78c54d2

Conversation

@open-swe
Copy link
Copy Markdown
Contributor

@open-swe open-swe bot commented Apr 14, 2026

Description

Adds a "Tradeoffs" subsection to the dynamic tools documentation addressing common questions: (1) models may attempt to call tools that were available in earlier turns but have since been removed, (2) changing the tool list invalidates the provider's prompt cache with practical mitigation strategies, and (3) fewer tools generally means better accuracy. Also adds a Warning callout to the middleware custom docs page cross-linking to the tradeoffs section.

Resolves DOC-991

Test Plan

  • Verify the new Tradeoffs section renders correctly in preview deployment
  • Confirm the Warning callout on the middleware custom page renders and links correctly

Opened collaboratively by Naomi Pentrel and open-swe.

Open SWE (open-swe) and others added 2 commits April 14, 2026 11:44
…ents page

Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
…l behavior risks

Co-authored-by: Naomi Pentrel <5212232+npentrel@users.noreply.github.com>
@github-actions github-actions bot added external User is not a member of langchain-ai langchain For docs changes to LangChain oss labels Apr 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776171572-08620c3

Comment thread src/oss/langchain/middleware/custom.mdx Outdated
@github-actions
Copy link
Copy Markdown
Contributor

Mintlify preview ID generated: preview-opensw-1776172304-187a215

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external User is not a member of langchain-ai langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants