DOC: Docs recommend "AnyMessage", example uses "BaseMessage" #523

Closed
opened 2026-02-20 17:40:33 -05:00 by yindo · 1 comment
Owner

Originally created by @hesreallyhim on GitHub (Mar 19, 2025).

Issue with current documentation:

Description

In this doc, the documentation states that for proper serialization, one should use AnyMessage when working with LangChain types, rather than BaseMessage... but the code example uses BaseMessage in declaring the State instead of AnyMesssage.

Idea or request for content:

Small fix:
https://github.com/langchain-ai/langgraph/pull/3926

Originally created by @hesreallyhim on GitHub (Mar 19, 2025). ### Issue with current documentation: ## Description In [this doc](https://github.com/langchain-ai/langgraph/blob/main/docs/docs/how-tos/state-model.ipynb?short_path=c4fb120#L466-L471), the documentation states that for proper serialization, one should use `AnyMessage` when working with LangChain types, rather than `BaseMessage`... but the code example uses `BaseMessage` in declaring the State instead of `AnyMesssage`. ### Idea or request for content: Small fix: https://github.com/langchain-ai/langgraph/pull/3926
yindo closed this issue 2026-02-20 17:40:33 -05:00
Author
Owner

@hesreallyhim commented on GitHub (Mar 19, 2025):

Fixed.

@hesreallyhim commented on GitHub (Mar 19, 2025): Fixed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#523