Skip to content

Conversation

@seaofawareness
Copy link
Contributor

This PR provides AgentCore-compatible checkpoint savers that use Valkey as the storage backend, combining AgentCore session management concepts with Valkey's storage and search capabilities.

@seaofawareness seaofawareness changed the title feat(agentcore): add Valkey checkpoint saver feat(langgraph-checkpoint-aws): add Valkey checkpoint saver for AgentCore Oct 29, 2025
Updated AgentCore Valkey saver and helpers to use langgraph-checkpoint 3.0 API.

Changes:
- Removed jsonplus_serde field (no longer needed in 3.0)
- Updated pyproject.toml to require langgraph-checkpoint>=3.0.0
- Removed JsonPlusSerializer imports (use SerializerProtocol instead)
- Updated tests to match new API
…d of Protocol

Cannot instantiate Protocol classes directly. Use concrete JsonPlusSerializer
implementation for default serializer in AgentCoreEventClient.

Fixes: 'Cannot instantiate protocol class SerializerProtocol' mypy error
- Add proper try/except for Valkey imports in integration tests
- Fix line length issue (E501) in unit tests by splitting long comment
- Ensure tests skip gracefully when valkey package is not installed
Copy link
Collaborator

@michaelnchin michaelnchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seaofawareness looks good overall, one comment regarding the sample notebook.

Copy link
Collaborator

@michaelnchin michaelnchin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - thanks for all of your work on the Valkey integrations @seaofawareness !

@michaelnchin michaelnchin merged commit 155c1a3 into langchain-ai:main Nov 4, 2025
12 checks passed
@seaofawareness seaofawareness deleted the agentcheckpoint branch November 4, 2025 16:08
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.

2 participants