[PR #5719] feat(langgraph): add support for Pydantic field aliases #4610

Closed
opened 2026-02-20 17:50:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/5719

State: closed
Merged: No


Description: This PR adds support for Pydantic field aliases in LangGraph. Previously, when using Pydantic models with field aliases as state schemas, LangGraph would raise validation errors when trying to use the aliased field names in input data. This implementation now properly handles aliased fields throughout the LangGraph processing pipeline, enabling users to define models with aliases and have them function correctly within the framework.

Issue: Fix #2555

Dependencies: None

**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5719 **State:** closed **Merged:** No --- Description: This PR adds support for Pydantic field aliases in LangGraph. Previously, when using Pydantic models with field aliases as state schemas, LangGraph would raise validation errors when trying to use the aliased field names in input data. This implementation now properly handles aliased fields throughout the LangGraph processing pipeline, enabling users to define models with aliases and have them function correctly within the framework. Issue: Fix #2555 Dependencies: None
yindo added the pull-request label 2026-02-20 17:50:28 -05:00
yindo closed this issue 2026-02-20 17:50:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#4610