aws / aws/bedrock-agentcore-sdk-python
Implement Batched Message Storage for AgentCore Session Manager
Open
enhancement
- Dominant language
- Python
- Stars
- 761
- Forks
- 147
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 7
Description
## Problem
The current Strands AgentCore Session Manager calls create_event per message. Since AgentCore charges per create_event call, this results in excessive costs for customers.
## Solution
Add a new input parameter to configure how many messages are batched per create_event call. Default to 1 for backwards compatibility.
## Implementation Details
* Add configurable batch size parameter (default: 1)
* Add finally/close block to ensure messages are sent to failure
* Update documentation and sample code to demonstrate batching
Contributor guide
Assessment
This issue has not been assessed yet.