AI Navigate

langchain-anthropic==1.4.0

LangChain Releases / 3/18/2026

📰 NewsDeveloper Stack & InfrastructureTools & Practical Usage

Key Points

  • The 1.4.0 release for langchain-anthropic introduces AnthropicPromptCachingMiddleware to apply explicit caching to the system message and tool definitions.
  • It adds delegation of the cache_control kwarg to the Anthropic top-level parameter for streamlined caching behavior.
  • The update includes chore updates to refresh model profile data.
  • It bumps the orjson dependency from 3.11.5 to 3.11.6 in /libs/partners/anthropic.

Changes since langchain-anthropic==1.3.5

release(anthropic): 1.4 (#36018)
feat(anthropic): AnthropicPromptCachingMiddleware: apply explicit caching to system message and tool definitions (#35969)
feat(anthropic): delegate cache_control kwarg to anthropic top-level param (#35967)
chore(model-profiles): refresh model profile data (#35959)
chore: bump orjson from 3.11.5 to 3.11.6 in /libs/partners/anthropic (#35867)