feat: support STM-only memory option for TypeScript Strands agents

未关闭
#1,776 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@nborges-aws 已经在做这个了。

开始于 2026年7月17日。

评估

这个 Issue 还没有评估数据。

描述

enhancement
Description

TypeScript Strands agents currently only offer two memory options: "no memory" or "LTM + STM". The "STM only" option (available for Python Strands agents) is missing because the Strands TS SDK and Bedrock AgentCore TS SDK do not support the necessary session management primitives.

We should support STM for TS strands agent once necessary support is available in strands & TS SDK.

Acceptance Criteria
  • "STM only" appears as a selectable memory option in the TUI and is accepted via --memory shortTerm for TypeScript Strands agents
  • Selecting "STM only" wires the agent to the deployed AgentCore Memory resource via the TS SDK's session manager (durable — survives cold starts)
  • The LRU cache in the "no memory" template path is replaced with Strands-native SessionManager + InMemoryStorage
  • Multi-turn recall works within a session (turn 2 remembers turn 1)
  • Sessions are isolated (session A's history does not bleed into session B)
  • Behavior matches the Python Strands template for the equivalent memory options
Additional Context

#1636: add support for TS memory
#1666: short-term LRU cache for per-session STM
Strands TS storage interface: https://github.com/strands-agents/harness-sdk/blob/main/strands-ts/src/session/session-manager.ts
TS SDK tracking issue: https://github.com/aws/bedrock-agentcore-sdk-typescript/issues/214

主要语言
TypeScript
星标
339
派生
129
平均合并
19 小时 21 分钟
30 天内合并 PR
125

环境准备

从这里开始

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

aws/agentcore-cli 的其他 Issue

查看 aws/agentcore-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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