Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Corrected a wrong import statement #985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pyaf wants to merge 1 commit into langchain-ai:main
base: main
Choose a base branch
Loading
from pyaf:patch-1
Open

Conversation

Copy link

@pyaf pyaf commented Oct 18, 2025

Corrected Anthropic Prompt Caching Middleware import

Overview

Type of change

Type: Fix typo

Related issues/PRs

Checklist

  • I have read the contributing guidelines
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed
  • I have gotten approval from the relevant reviewers
  • (Internal team members only / optional) I have created a preview deployment using the Create Preview Branch workflow

Additional notes

I'm not sure if the typescript version needs a similar update too as well or not. Please let me know and I'll update this PR.

Corrected Anthropic Prompt Caching Middleware import
@Copilot Copilot AI review requested due to automatic review settings October 18, 2025 13:54
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects an incorrect import statement for the Anthropic Prompt Caching Middleware in the Python middleware documentation.

Key Changes:

  • Fixed the import path for AnthropicPromptCachingMiddleware from the incorrect langchain.agents.middleware.prompt_caching to the correct langchain_anthropic.middleware.prompt_caching

@github-actions github-actions bot added langchain For docs changes to LangChain oss labels Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot Copilot left review comments

@lnhsingh lnhsingh Awaiting requested review from lnhsingh lnhsingh is a code owner

@katmayb katmayb Awaiting requested review from katmayb katmayb is a code owner

Assignees

No one assigned

Labels

langchain For docs changes to LangChain oss

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /