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
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.