Skip to content

docs: document cache_control on OpenRouter tool definitions#4508

Draft
Mason Daugherty (mdrxy) wants to merge 1 commit into
mainfrom
open-swe/openrouter-tool-cache-control
Draft

docs: document cache_control on OpenRouter tool definitions#4508
Mason Daugherty (mdrxy) wants to merge 1 commit into
mainfrom
open-swe/openrouter-tool-cache-control

Conversation

@mdrxy

Copy link
Copy Markdown
Member

Description

Adds a "Caching tool definitions" subsection to the OpenRouter chat integration page showing how to cache large tool schemas via a top-level cache_control breakpoint on a tool dict, alongside the existing message-content caching docs.

Release Note

none

Test Plan

  • Verify the new section renders and the bind_tools example is consistent with the SDK's tool serialization

Made by Open SWE

Add a subsection to the OpenRouter chat docs showing how to cache large
tool schemas via a top-level cache_control breakpoint on a tool dict.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
@github-actions github-actions Bot added internal langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects labels Jun 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Mintlify preview branch generated: preview-opensw-1781706951-9d0138e

Site preview: https://langchain-5e9cc07a-preview-opensw-1781706951-9d0138e.mintlify.app

Important

Preview links may take a few minutes to start working while the deployment finishes.

Changed documentation pages (preview deep links):

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

Labels

internal langchain For docs changes to LangChain oss python For content related to the Python version of LangChain projects

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant