From adaa340c15f040634d3f4162e77c76e9657a00f9 Mon Sep 17 00:00:00 2001 From: Sakshi Gupta <64280320+sakshi1989@users.noreply.github.com> Date: Sun, 20 Jul 2025 17:32:47 -0400 Subject: [PATCH] fix(docs): jokes needs reducer in graph-api.md (#5489) (#5489) --- docs/docs/how-tos/graph-api.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/docs/how-tos/graph-api.md b/docs/docs/how-tos/graph-api.md index f6aba2698..123b40399 100644 --- a/docs/docs/how-tos/graph-api.md +++ b/docs/docs/how-tos/graph-api.md @@ -1152,12 +1152,13 @@ LangGraph supports map-reduce and other advanced branching patterns using the Se ```python from langgraph.graph import StateGraph, START, END from langgraph.types import Send -from typing_extensions import TypedDict +from typing_extensions import TypedDict, Annotated +import operator class OverallState(TypedDict): topic: str subjects: list[str] - jokes: list[str] + jokes: Annotated[list[str], operator.add] best_selected_joke: str def generate_topics(state: OverallState):