docs: import messagesStateReducer in low_level.md example#2464
Conversation
|
@langchain/langgraph-checkpoint
@langchain/langgraph-checkpoint-mongodb
@langchain/langgraph-checkpoint-postgres
@langchain/langgraph-checkpoint-redis
@langchain/langgraph-checkpoint-sqlite
@langchain/langgraph-checkpoint-validation
create-langgraph
@langchain/langgraph-api
@langchain/langgraph-cli
@langchain/langgraph
@langchain/langgraph-cua
@langchain/langgraph-supervisor
@langchain/langgraph-swarm
@langchain/langgraph-ui
@langchain/langgraph-sdk
@langchain/angular
@langchain/react
@langchain/svelte
@langchain/vue
commit: |
Christian Bromann (christian-bromann)
left a comment
There was a problem hiding this comment.
Thank you 👍
Please note that these docs are outdated. We recommend to check out our new docs at https://docs.langchain.com/oss/javascript/langgraph/overview
bc3b98e
into
langchain-ai:main
The
messagesStateReducerexample on the Low Level concepts page usesmessagesStateReduceras its reducer, but the import only brings inAnnotationand theMessagestype. Copy-pasting it as-is fails to compile withCannot find name 'messagesStateReducer'. This adds it to the import. The equivalent example just below already imports it the same way.