langgraph icon indicating copy to clipboard operation
langgraph copied to clipboard

fix(langgraph): accept Sequence[...] for Messages

Open simone-viozzi opened this issue 3 months ago • 4 comments

Description Broaden the Messages alias from list[...] to Sequence[...] to avoid list invariance errors in type checkers when passing list[BaseMessage] (e.g., to add_messages). This is a typing-only change and does not alter runtime behavior.

Issue Fixes #6207

Dependencies None

Twitter handle

simone-viozzi avatar Sep 26 '25 16:09 simone-viozzi

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
langgraph-docs-preview Ignored Ignored Preview Sep 29, 2025 7:30am

vercel[bot] avatar Sep 26 '25 16:09 vercel[bot]

@sydney-runkle is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 07 '25 10:11 vercel[bot]

Hiya @simone-viozzi, could you please help fix the linting issues? happy to merge after, thanks!

sydney-runkle avatar Nov 07 '25 10:11 sydney-runkle

Hi @sydney-runkle, there should be no linting errors now.

I've also rebased to the latest main.

simone-viozzi avatar Nov 09 '25 19:11 simone-viozzi