diff --git a/docs/docs/concepts/pregel.md b/docs/docs/concepts/pregel.md index 3c8b01cac..5157848db 100644 --- a/docs/docs/concepts/pregel.md +++ b/docs/docs/concepts/pregel.md @@ -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 diff --git a/libs/langgraph/langgraph/pregel/__init__.py b/libs/langgraph/langgraph/pregel/__init__.py index 0f2ce1233..bcd2f1ce3 100644 --- a/libs/langgraph/langgraph/pregel/__init__.py +++ b/libs/langgraph/langgraph/pregel/__init__.py @@ -411,7 +411,7 @@ class Pregel(PregelProtocol): def reducer(current, update): if current: - return current + " | " + "update" + return current + " | " + update else: return update