mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-26 17:42:24 +02:00
docs: fix example pregel reducer (#4740)
This commit is contained in:
@@ -180,7 +180,7 @@ Below are a few different examples to give you a sense of the Pregel API.
|
||||
|
||||
def reducer(current, update):
|
||||
if current:
|
||||
return current + " | " + "update"
|
||||
return current + " | " + update
|
||||
else:
|
||||
return update
|
||||
|
||||
|
||||
@@ -411,7 +411,7 @@ class Pregel(PregelProtocol):
|
||||
|
||||
def reducer(current, update):
|
||||
if current:
|
||||
return current + " | " + "update"
|
||||
return current + " | " + update
|
||||
else:
|
||||
return update
|
||||
|
||||
|
||||
Reference in New Issue
Block a user