aws / aws/bedrock-agentcore-sdk-python

Implement Batched Message Storage for AgentCore Session Manager

Open
#216 0 comments 2 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.