We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c85cba commit adaa340Copy full SHA for adaa340
docs/docs/how-tos/graph-api.md
@@ -1152,12 +1152,13 @@ LangGraph supports map-reduce and other advanced branching patterns using the Se
1152
```python
1153
from langgraph.graph import StateGraph, START, END
1154
from langgraph.types import Send
1155
-from typing_extensions import TypedDict
+from typing_extensions import TypedDict, Annotated
1156
+import operator
1157
1158
class OverallState(TypedDict):
1159
topic: str
1160
subjects: list[str]
- jokes: list[str]
1161
+ jokes: Annotated[list[str], operator.add]
1162
best_selected_joke: str
1163
1164
def generate_topics(state: OverallState):
0 commit comments