aws / aws/bedrock-agentcore-sdk-python
Implement Batched Message Storage for AgentCore Session Manager
- Dominant language
- Python
- Stars
- 764
- Forks
- 148
- 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
Research direction
Locate the AgentCore Session Manager implementation and its create_event call, then read the surrounding message lifecycle before deciding where batching and close/finally handling belong. Update the documented parameter and sample code, and verify that the default remains one message per call while pending messages are sent on failure or close.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend, documentation
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100