Skip to content

Conversation

pyaf
Copy link
Contributor

@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
@pyaf pyaf requested review from katmayb and lnhsingh as code owners 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
@Copilot Copilot AI review requested due to automatic review settings October 20, 2025 01:07
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@mdrxy mdrxy changed the title Corrected a wrong import statement fix: anthropic caching middleware import Oct 20, 2025
@mdrxy mdrxy merged commit 05f1c33 into langchain-ai:main Oct 20, 2025
6 checks passed
mdrxy added a commit to aayush3011/docs that referenced this pull request Oct 20, 2025
Corrected Anthropic Prompt Caching Middleware import

## Overview
<!-- Brief description of what documentation is being added/updated -->

## Type of change

**Type:** Fix typo

## Related issues/PRs


## Checklist
<!-- Put an 'x' in all boxes that apply -->
- [x] I have read the [contributing guidelines](README.md)
- [x] 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](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml)

## 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.

Co-authored-by: Mason Daugherty <mason@langchain.dev>
mdrxy added a commit to aayush3011/docs that referenced this pull request Oct 20, 2025
Corrected Anthropic Prompt Caching Middleware import

## Overview
<!-- Brief description of what documentation is being added/updated -->

## Type of change

**Type:** Fix typo

## Related issues/PRs


## Checklist
<!-- Put an 'x' in all boxes that apply -->
- [x] I have read the [contributing guidelines](README.md)
- [x] 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](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml)

## 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.

Co-authored-by: Mason Daugherty <mason@langchain.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

langchain For docs changes to LangChain oss

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants