Skip to content

Conversation

@lexi-k
Copy link

@lexi-k lexi-k commented Nov 14, 2025

Hello, I believe that the __enter__ and __aenter__ functions of the InMemorySaver class should return self instances. I tried wrapping checkpointers in a custom function in our library that returns AbstractAsyncContextManagers and found out that actually this does not work as IMO intended for the InMemorySaver.

In this PR I am proposing a fix and adding two simple test cases.

@vercel
Copy link

vercel bot commented Nov 14, 2025

@lexi-k is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

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