[PR #5521] docs(langgraph): fixes fan-out example #4494

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

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

State: closed
Merged: No


Thank you for contributing to LangGraph! Follow these steps to mark your pull request as ready for review. If any of these steps are not completed, your PR will not be considered for review.

Description: Fixes an example in the docs that didn't work.
Issue: The original code raises:

InvalidUpdateError: At key 'jokes': Can receive only one value per step. Use an Annotated key to handle multiple values.
For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE

So I added the Annontation, and now it works. I tested it on this colab: https://colab.research.google.com/drive/1wywK13Gxi27taruQBKjiz872X5BleJk0?usp=sharing
Dependencies: No dependencies, only docs.
Twitter handle: not needed.

Additional guidelines:

  • Make sure optional dependencies are imported within a function.
  • Please do not add dependencies to pyproject.toml files (even optional ones) unless they are required for unit tests.
  • Most PRs should not touch more than one package.
  • Changes should be backwards compatible.
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/5521 **State:** closed **Merged:** No --- Thank you for contributing to LangGraph! Follow these steps to mark your pull request as ready for review. **If any of these steps are not completed, your PR will not be considered for review.** **Description:** Fixes an example in the docs that didn't work. **Issue:** The original code raises: ``` InvalidUpdateError: At key 'jokes': Can receive only one value per step. Use an Annotated key to handle multiple values. For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/errors/INVALID_CONCURRENT_GRAPH_UPDATE ``` So I added the Annontation, and now it works. I tested it on this colab: https://colab.research.google.com/drive/1wywK13Gxi27taruQBKjiz872X5BleJk0?usp=sharing **Dependencies:** No dependencies, only docs. **Twitter handle:** not needed. Additional guidelines: - Make sure optional dependencies are imported within a function. - Please do not add dependencies to `pyproject.toml` files (even optional ones) unless they are **required** for unit tests. - Most PRs should not touch more than one package. - Changes should be backwards compatible.
yindo added the pull-request label 2026-02-20 17:50:17 -05:00
yindo closed this issue 2026-02-20 17:50:17 -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#4494