Skip to content

feat: add async support to MemorySessionManager#478

Open
nborges-aws wants to merge 1 commit into
mainfrom
fireAndForget
Open

feat: add async support to MemorySessionManager#478
nborges-aws wants to merge 1 commit into
mainfrom
fireAndForget

Conversation

@nborges-aws
Copy link
Copy Markdown
Contributor

Issue #, if available:
#452

Description of changes:

  • New async_mode: bool = False on AgentCoreMemoryConfig. Opt-in; default preserves existing behavior.
  • When True, register_hooks installs async callbacks that wrap the existing sync methods in asyncio.to_thread()
  • logger.warning at register_hooks time when async_mode=True pointing users to stream_async / invoke_async — sync invocation will raise RuntimeError from Strands.
  • 7 new tests covering newly added logic

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@github-actions
Copy link
Copy Markdown
Contributor

✅ No Breaking Changes Detected

No public API breaking changes found in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant