Files
langchain/libs/partners/anthropic
Mason Daugherty f88d4f0212 docs(anthropic): clarify prompt caching middleware docstring (#38206)
Updates the `AnthropicPromptCachingMiddleware` class docstring so it no
longer implies the middleware itself tags the final message tail. It
tags the system message and tool definitions and passes `cache_control`
via `model_settings`; the chat model/provider applies the message-tail
and provider-specific behavior. Docstring-only, no runtime change.

Made by [Open
SWE](https://openswe.vercel.app/agents/27913c08-b40c-015e-afee-cf66788b7f08)

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-06-17 14:58:32 -04:00
..
2026-06-12 14:54:25 -04:00

langchain-anthropic

PyPI - Version PyPI - License PyPI - Downloads Twitter

Looking for the JS/TS version? Check out LangChain.js.

Quick Install

uv add langchain-anthropic

🤔 What is this?

This package contains the LangChain integration for Anthropic's generative models.

📖 Documentation

For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.

📕 Releases & Versioning

See our Releases and Versioning policies.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.

Resources

  • LangChain Academy — comprehensive, free courses on LangChain libraries and products, made by the LangChain team
  • Code of Conduct — community guidelines and standards