Skip to content

Conversation

amaze-28
Copy link
Contributor

Add support for Anthropic's ephemeral cache points with TTL in AWS Bedrock integration. This enables users to utilize the new 1-hour cache duration feature when using Claude models.

  • Add isEphemeralCachePoint() validation function
  • Support optional TTL values ('5m', '1h', or none for default 5m)
  • Update all message converter functions to handle ephemeral cache points
  • Add comprehensive test coverage for all TTL scenarios
  • Maintain backwards compatibility with existing cache point usage

Fixes # (9014)

Add support for Anthropic's ephemeral cache points with TTL in AWS Bedrock integration.
This enables users to utilize the new 1-hour cache duration feature when using Claude models.

- Add isEphemeralCachePoint() validation function
- Support optional TTL values ('5m', '1h', or none for default 5m)
- Update all message converter functions to handle ephemeral cache points
- Add comprehensive test coverage for all TTL scenarios
- Maintain backwards compatibility with existing cache point usage

Fixes langchain-ai#9014
Copy link

changeset-bot bot commented Sep 30, 2025

⚠️ No Changeset found

Latest commit: d20fe89

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
langchainjs-docs Ready Ready Preview Sep 30, 2025 10:13pm
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langchainjs-api-refs Ignored Ignored Sep 30, 2025 10:13pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant