Skip to content

Conversation

@moritalous
Copy link

Add simplified message caching example using PromptCachingHook with note on minimum token requirements for cache creation.

Description

Added a new "Automatic Message Caching with PromptCachingHook (Simplified)" section to the Amazon Bedrock documentation. This provides users with a practical example of using PromptCachingHook for automatic cache point management, simplifying the message caching
workflow compared to manual cache point management.

The section includes:

  • Python code example with imports and usage patterns
  • Explanation of automatic cache point lifecycle (add before invocation, remove after)
  • Important note about minimum token requirements (1,024+) for cache creation
  • TypeScript support status indication

Related Issues

strands-agents/sdk-python#1508

Type of Change

  • Content update/revision

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using mkdocs serve
  • Links in the documentation are valid and working

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Add simplified message caching example using PromptCachingHook with note on minimum token requirements for cache creation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant