-
Notifications
You must be signed in to change notification settings - Fork 219
fix: anthropic caching middleware import #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
Conversation
Corrected Anthropic Prompt Caching Middleware import
There was a problem hiding this 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 incorrectlangchain.agents.middleware.prompt_caching
to the correctlangchain_anthropic.middleware.prompt_caching
There was a problem hiding this 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.
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>
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>
Corrected Anthropic Prompt Caching Middleware import
Overview
Type of change
Type: Fix typo
Related issues/PRs
Checklist
docs dev
src/docs.json
if neededAdditional 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.