Skip to content

feat(langchain): add state to _ModelRequestOverrides#34692

Merged
Mason Daugherty (mdrxy) merged 1 commit into
masterfrom
mdrxy/add-state-override
Jan 9, 2026
Merged

feat(langchain): add state to _ModelRequestOverrides#34692
Mason Daugherty (mdrxy) merged 1 commit into
masterfrom
mdrxy/add-state-override

Conversation

@mdrxy
Copy link
Copy Markdown
Member

Appears override()'s docstring in langgraph already shows state=new_state as a valid usage pattern

Works since dataclasses.replace() accepts any field, but the TypedDicts weren't updated to match. Caused mypy to flag legitimate usage as an error.

@github-actions github-actions Bot added langchain `langchain` package issues & PRs feature For PRs that implement a new feature; NOT A FEATURE REQUEST labels Jan 9, 2026
@mdrxy Mason Daugherty (mdrxy) merged commit 703736a into master Jan 9, 2026
51 checks passed
@mdrxy Mason Daugherty (mdrxy) deleted the mdrxy/add-state-override branch January 9, 2026 23:28
Mason Daugherty (mdrxy) added a commit to langchain-ai/langgraph that referenced this pull request Jan 10, 2026
xingshuozhu1998 pushed a commit to xingshuozhu1998/langgraph that referenced this pull request May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature For PRs that implement a new feature; NOT A FEATURE REQUEST internal langchain `langchain` package issues & PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant