Implement Batched Message Storage for AgentCore Session Manager

未关闭
#216 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
python

调研方向

定位 AgentCore Session Manager 的实现及其 create_event 调用,然后阅读周围的消息生命周期,再决定应将批处理和 close/finally 处理放在哪里。更新文档中的参数和示例代码,并验证默认行为仍然是每次调用发送一条消息,同时在失败或关闭时发送待处理的消息。

由索引模型根据 Issue 内容生成。

描述

enhancement

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
主要语言
Python
星标
786
派生
163
平均合并
4 小时
30 天内合并 PR
22

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aws/bedrock-agentcore-sdk-python 的其他 Issue

查看 aws/bedrock-agentcore-sdk-python 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。