Anthropic (Claude) chat models.
See the LangChain docs for ChatAnthropic
for tutorials, feature walkthroughs, and examples.
See the Claude Platform docs for a list of the latest models, their capabilities, and pricing.
Prompt Caching Middleware.
Optimizes API usage by caching conversation prefixes for Anthropic models.
Requires both langchain and langchain-anthropic packages to be installed.
Applies cache control breakpoints to:
cache_control so static system prompt content is cached.cache_control so tool
schemas are cached across turns.Learn more about Anthropic prompt caching here.
Anthropic prompt caching middleware.
Requires:
langchain: For agent middleware frameworklangchain-anthropic: For ChatAnthropic model (already a dependency)