mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-06 01:37:49 +02:00
Simple update that adds support for the `update` attribute of the `Command` class to support Pydantic `BaseModel` type. LangGraph already supports [Pydantic models for graph states](https://langchain-ai.github.io/langgraph/how-tos/state-model/). Extending support to the `update` attribute allows users to pass custom BaseModel instances. Additionally, updates defined as `BaseModel` types are type-validated when created. https://github.com/langchain-ai/langgraph/issues/2804 --------- Co-authored-by: vbarda <vadym@langchain.dev>